summaryrefslogtreecommitdiff
path: root/id_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'id_table.c')
-rw-r--r--id_table.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/id_table.c b/id_table.c
index ad1df059bc..0277f7b1fc 100644
--- a/id_table.c
+++ b/id_table.c
@@ -1458,6 +1458,11 @@ mix_id_table_insert(struct mix_id_table *tbl, ID id, VALUE val)
hash_id_table_insert_key(hash, keys[i], values[i]);
}
+ /* free list keys/values */
+ xfree(keys);
+#if ID_TABLE_USE_CALC_VALUES == 0
+ xfree(values);
+#endif
assert(LIST_P(tbl) == 0);
}
return r;