From fbc442104810709b9c006d28af06d1a00ea94b28 Mon Sep 17 00:00:00 2001 From: erg Date: Mon, 23 Apr 2007 18:12:39 +0000 Subject: [PATCH] Fix memory leak - Pobsclose should free object as well as its parts. --- lib/pathplan/cvt.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.40.0