Ver Fonte

Fix memory leak in LSUP_graph_store when output is NULL.

Stefano Cossu há 3 anos atrás
pai
commit
996902aad4
1 ficheiros alterados com 1 adições e 0 exclusões
  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;
 }