Explorar el Código

Fix mem leaks.

Stefano Cossu hace 3 años
padre
commit
642cbd5042
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/desc.c

+ 2 - 1
src/desc.c

@@ -333,10 +333,11 @@ LSR_desc_get (const uuid_t id, LSR_Desc **rsrc_p)
         while (i < ct) LSUP_graph_free (data[i++]);
         free (data);
 
-        LSUP_term_free (s);
         LSUP_term_free (p);
     }
 
+    LSUP_term_free (s);
+    free (spo);
     LSUP_graph_free (main_gr);
 
     return rc;