Parcourir la source

Fix memory leak in LSUP_graph_store when output is NULL.

Stefano Cossu il y a 3 ans
Parent
commit
996902aad4
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;
 }