summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/tests/hashtable_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/tests/hashtable_test.c b/src/lib/tests/hashtable_test.c
index d8cc73c5..e3127743 100644
--- a/src/lib/tests/hashtable_test.c
+++ b/src/lib/tests/hashtable_test.c
@@ -64,6 +64,7 @@ int hashtable_test(int argc, char ** argv)
if (htable_insert(table, i, (void *) j, 1)) {
printf("Failed to insert.\n");
htable_destroy(table);
+ free(j);
return -1;
}
}