mathieufrh / ccl

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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 9 years ago
Fixed

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