summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-15 14:28:52 -0500
committerDavid Robillard <d@drobilla.net>2024-11-15 14:28:52 -0500
commit8430cfd24c7b0b0e72ad7b97389de6edd188b735 (patch)
tree2ece375a0c9006485094fd8861978b2a60145418 /test
parent9b604f9ce034ca487bb49272e119fc79edf479c8 (diff)
downloadzix-8430cfd24c7b0b0e72ad7b97389de6edd188b735.tar.gz
zix-8430cfd24c7b0b0e72ad7b97389de6edd188b735.tar.bz2
zix-8430cfd24c7b0b0e72ad7b97389de6edd188b735.zip
Avoid potential memory leak in test
Diffstat (limited to 'test')
-rw-r--r--test/test_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_hash.c b/test/test_hash.c
index 07ec529..31c7e45 100644
--- a/test/test_hash.c
+++ b/test/test_hash.c
@@ -193,8 +193,8 @@ stress_with(ZixAllocator* const allocator,
if (not_indexed) {
memcpy(not_indexed, not_indexed_string, strlen(not_indexed_string) + 1);
const char* match = (const char*)zix_hash_find_record(hash, not_indexed);
- ENSUREV(&state, !match, "Unexpectedly found `%s'\n", not_indexed);
free(not_indexed);
+ ENSUREV(&state, !match, "Unexpectedly found `%s'\n", not_indexed_string);
}
// Remove strings