aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-09 16:34:09 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-09 16:34:09 +0200
commita44c7e09d9b3504fdc26253840728e517fa9f598 (patch)
tree2d86f17d3df9c2776937c1926bb61d296811639f /test
parent7059e4e133b62f5ad3339d51966f226089532710 (diff)
Fix bug where pointer to local was returned
Diffstat (limited to 'test')
-rw-r--r--test/_case-test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/_case-test.h b/test/_case-test.h
index ea05a86..701d884 100644
--- a/test/_case-test.h
+++ b/test/_case-test.h
@@ -72,6 +72,7 @@ test(const char8_t *line, int id)
if (!u8eq(mapped, after)) {
warn("case %d: expected ā€˜%.*sā€™ but got ā€˜%.*sā€™", id, SV_PRI_ARGS(after),
SV_PRI_ARGS(mapped));
+ arena_free(&a);
return false;
}