ref: 299e89562db71dc41c5c2a4f30bb1ffdfd84239d
parent: d62bb413980727400377b5dfe166d61ad0ecc86f
author: mkf <mkf@cloud9p.org>
date: Sun Dec 3 16:06:58 EST 2023
free: clear memory while freeing it
--- a/pc/mem.c
+++ b/pc/mem.c
@@ -64,6 +64,7 @@
while(memap[i])
{
memap[i] = 0;
+ *(char*)mem++ = '\0';
i++;
}
return OK;