summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-19 16:51:00 +0000
committerDavid Robillard <d@drobilla.net>2011-09-19 16:51:00 +0000
commitef7c15a148caba3a3dc673dc358e17b5bb7061fc (patch)
tree8e207301f8a682d8b39f6a6d6b3ba004a64e076b
parentc7b6685f1e383d043bd44964d176bf71fe9bbb73 (diff)
downloadzix-ef7c15a148caba3a3dc673dc358e17b5bb7061fc.tar.gz
zix-ef7c15a148caba3a3dc673dc358e17b5bb7061fc.tar.bz2
zix-ef7c15a148caba3a3dc673dc358e17b5bb7061fc.zip
Fix memory leak.
git-svn-id: http://svn.drobilla.net/zix/trunk@28 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
-rw-r--r--src/patree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/patree.c b/src/patree.c
index 09a80f3..8d50e64 100644
--- a/src/patree.c
+++ b/src/patree.c
@@ -50,6 +50,7 @@ zix_patree_print_rec(ZixPatreeNode* node, FILE* fd)
fprintf(fd, "\t\"%p\" [label=<"
"<TABLE BORDER=\"0\" CELLBORDER=\"1\" CELLSPACING=\"0\">"
"<TR><TD>%s</TD></TR>", (void*)node, edge_label);
+ free(edge_label);
if (node->str) {
fprintf(fd, "<TR><TD>\"%s\"</TD></TR>", node->str);
}