aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/read.c b/read.c
index fee60ea..e739bb0 100644
--- a/read.c
+++ b/read.c
@@ -64,6 +64,8 @@ static link* insorget(strbst* tgt, char* name) {
if (!get) {
get = newlink(newnode());
insbst(tgt, name, get);
+ } else {
+ free(name);
}
return get;
}