Procházet zdrojové kódy

Fix memory leak in LSUP_graph_store when output is NULL.

Stefano Cossu před 3 roky
rodič
revize
996902aad4
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;
 }