]> granicus.if.org Git - graphviz/commitdiff
Fix memory leak - Pobsclose should free object as well as its parts.
authorerg <devnull@localhost>
Mon, 23 Apr 2007 18:12:39 +0000 (18:12 +0000)
committererg <devnull@localhost>
Mon, 23 Apr 2007 18:12:39 +0000 (18:12 +0000)
lib/pathplan/cvt.c

index 6e645ddf8f2cf7d3d45abf90c8419cd307ff57f7..35f56414a72efcdb243ccf3806c208ad35df2c36 100644 (file)
@@ -108,6 +108,7 @@ void Pobsclose(vconfig_t * config)
     free(config->next);
     free(config->prev);
     free(config->vis);
+    free(config);
 }
 
 int Pobspath(vconfig_t * config, Ppoint_t p0, int poly0, Ppoint_t p1,