zmughal / ccl

Automatically exported from code.google.com/p/ccl
0 stars 0 forks source link

one memory leak fixed, now the rest of them (3) #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

diff -uBb  pooldebug.c.org pooldebug.c
--- pooldebug.c.org 2011-03-01 11:37:07.588075465 +0100
+++ pooldebug.c 2011-03-01 11:47:16.366520121 +0100
@@ -508,6 +508,7 @@
     pool->owner = GetCurrentThread();
 #endif /* THREAD_VERSION */
      if ((pool_allocator = calloc(1,sizeof(Allocator))) == NULL) {
+   Free(pool);
         return NULL;
     }
     pool_allocator->owner = pool;

Original issue reported on code.google.com by oetelaar.automatisering on 1 Mar 2011 at 10:48

GoogleCodeExporter commented 9 years ago
Thanks for this report!

Original comment by jacobnav...@gmail.com on 8 Mar 2011 at 11:18

GoogleCodeExporter commented 9 years ago
Thanks for this report!

Original comment by jacobnav...@gmail.com on 8 Mar 2011 at 11:18

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by jacobnav...@gmail.com on 15 Apr 2011 at 10:50