diff --git a/src/unit/test_hashtable.c b/src/unit/test_hashtable.c index 782fa0ee6a..689440e43d 100644 --- a/src/unit/test_hashtable.c +++ b/src/unit/test_hashtable.c @@ -303,6 +303,7 @@ int test_two_phase_insert_and_pop(int argc, char **argv, int flags) { TEST_ASSERT(hashtableSize(ht) == size_before_find); hashtableTwoPhasePopDelete(ht, &position); TEST_ASSERT(hashtableSize(ht) == size_before_find - 1); + free(e); } TEST_ASSERT(hashtableSize(ht) == 0);