From 18cb752718cad95957548739118fa4fbc52e2448 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 19 Jun 2007 15:40:30 +0000 Subject: [PATCH] Fix space leaks in pointset. --- lib/common/pointset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/pointset.c b/lib/common/pointset.c index f82ba0c1b..3c098d3f1 100644 --- a/lib/common/pointset.c +++ b/lib/common/pointset.c @@ -129,7 +129,7 @@ typedef struct { static mpair *mkMPair(Dt_t * d, mpair * obj, MPairDisc * disc) { - mpair *ap = GNEW(mpair); + mpair *ap; if (disc->flist) { ap = disc->flist; @@ -180,11 +180,11 @@ void freePM(PointMap * ps) mpair *p; mpair *next; + dtclose(ps); for (p = dp->flist; p; p = next) { next = (mpair *) (p->link.right); free(p); } - dtclose(ps); free(dp); } -- 2.40.0