]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fixed leak
authorkostas <>
Sat, 28 Feb 1998 13:31:59 +0000 (13:31 +0000)
committerkostas <>
Sat, 28 Feb 1998 13:31:59 +0000 (13:31 +0000)
test-suite/Makefile
test-suite/membanger.c

index ba7ea030a171c86070b83a3edd21a6881b75f9d3..31cdc8d31f82d59453262751a41c378ce55f6a0b 100644 (file)
@@ -1,5 +1,5 @@
 CC     = gcc
-CFLAGS = -g -DWITH_LIB
+CFLAGS = -O3 -DWITH_LIB
 OBJS   = membanger.o hash.o SizeToPool.o
 LIB    = -L. -lMem
 TARGLIB = libMem.a
index 81532690ddc4e90b2e981a4d5d0b38c3c94a2c16..33545aa33d693873b6a16e90919605866aa51131 100644 (file)
@@ -200,6 +200,7 @@ main(int argc,char **argv)
           assert(mi->my_ptr);
           xmemFree(mi); /* xfree(mi->my_ptr); */ 
           hash_unlink(mem_table, mem_entry, 1);
+          free(mi);
           mstat.frees++;
           break;
        default: