jacob-navia / ccl

This is the code that was previously in code.google.com/p/ccl
46 stars 14 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
diff -uBb list.c.org list.c
--- list.c.org  2011-03-01 11:34:08.226523528 +0100
+++ list.c  2011-03-01 11:34:59.777768935 +0100
@@ -1459,6 +1459,7 @@
     result = iList.Create(L.ElementSize);
     if (result == NULL) {
         iError.RaiseError("iList.Load",CONTAINER_ERROR_NOMEMORY);
+        free(buf);
         return NULL;
     }
     result->Flags = L.Flags;

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

GoogleCodeExporter commented 8 years ago
Fixed

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