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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
diff -uB scapegoat.c.org scapegoat.c
--- scapegoat.c.org 2011-03-01 11:30:46.666520383 +0100
+++ scapegoat.c 2011-03-01 11:31:11.997765691 +0100
@@ -876,7 +876,8 @@
     result = Create(L.ElementSize);
     if (result == NULL) {
         iError.RaiseError("Load",CONTAINER_ERROR_NOMEMORY);
-        return NULL;
+       free(buf);
+   return NULL;
     }
     result->Flags = L.Flags;
     r = 1;

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

GoogleCodeExporter commented 9 years ago
Fixed

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