From ae4d2ca0c78a78d045a334b8bd6082249ceb75d9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 10 Sep 2022 07:54:18 -0700 Subject: [PATCH] dotgen cloneNode: fix memory leak --- lib/dotgen/dotsplines.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index c285800d9..2cac2a95c 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -987,6 +987,7 @@ static node_t *cloneNode(graph_t *g, node_t *orign) { char* buf = N_GNEW(lbllen+3,char); sprintf (buf, "{%s}", ND_label(orign)->text); agset (n, "label", buf); + free(buf); } return n; -- 2.50.1