Explorar o código

Fix memory leak in LSUP_graph_store when output is NULL.

Stefano Cossu %!s(int64=3) %!d(string=hai) anos
pai
achega
996902aad4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/graph.c

+ 1 - 0
src/graph.c

@@ -165,6 +165,7 @@ LSUP_graph_store (
     }
 
     if (dest_p) *dest_p = dest;
+    else LSUP_graph_free (dest);
 
     return LSUP_OK;
 }