From: erg Date: Mon, 23 Apr 2007 18:12:39 +0000 (+0000) Subject: Fix memory leak - Pobsclose should free object as well as its parts. X-Git-Tag: LAST_LIBGRAPH~32^2~5596 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbc442104810709b9c006d28af06d1a00ea94b28;p=graphviz Fix memory leak - Pobsclose should free object as well as its parts. --- diff --git a/lib/pathplan/cvt.c b/lib/pathplan/cvt.c index 6e645ddf8..35f56414a 100644 --- a/lib/pathplan/cvt.c +++ b/lib/pathplan/cvt.c @@ -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,