From: erg Date: Thu, 28 Jun 2007 18:04:10 +0000 (+0000) Subject: Fix 2 space leaks. X-Git-Tag: LAST_LIBGRAPH~32^2~5529 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b0c49ac312890a22f31a9985820f7e284254b18;p=graphviz Fix 2 space leaks. --- diff --git a/lib/fdpgen/fdpinit.c b/lib/fdpgen/fdpinit.c index 3259057e1..7858c0f83 100644 --- a/lib/fdpgen/fdpinit.c +++ b/lib/fdpgen/fdpinit.c @@ -68,7 +68,6 @@ static void initialPositions(graph_t * g) static void fdp_initNode(node_t * n) { neato_init_node(n); - ND_pos(n) = N_GNEW(GD_ndim(n->graph), double); } /* init_edge: diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index 9cfb7ab35..a43d6ff02 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -932,6 +932,7 @@ setClustNodes(graph_t* root) /* set bounding box of dg and reposition nodes */ finalCC(dg, c_cnt, cc, pts, g, infop); + free (pts); /* record positions from derived graph to input graph */ /* At present, this does not record port node info */