Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions