From a44c7e09d9b3504fdc26253840728e517fa9f598 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 9 May 2024 16:34:09 +0200 Subject: Fix bug where pointer to local was returned --- test/_case-test.h | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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; } -- cgit v1.2.3