aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/map.c b/map.c
index b8de316..06be327 100644
--- a/map.c
+++ b/map.c
@@ -109,6 +109,8 @@ mapput(struct map *h, struct mapkey *k)
h->vals[j] = oldvals[i];
}
}
+ free(oldkeys);
+ free(oldvals);
}
i = keyindex(h, k);
if (!h->keys[i].str) {