Mail Archives: djgpp-workers/1998/10/31/10:40:37
Hi DJ,
there is still one patch for malloc.c not applied.
Here it is again (this is for fixing the bug when
calling free(NULL); )
--- src/libc/ansi/stdlib/malloc.c~ Sat Sep 19 18:59:14 1998
+++ src/libc/ansi/stdlib/malloc.c Thu Jul 30 18:53:42 1998
@@ -279,9 +279,10 @@
free(void *ptr)
{
int b;
- BLOCK *block = (BLOCK *)((char *)ptr-4);
+ BLOCK *block;
if (ptr == 0)
return;
+ block = (BLOCK *)((char *)ptr-4);
#if NUMSMALL
if (block->size < SMALL)
- Raw text -