From 078c4e6c53f13dff15f0eaac1611abb6379e0206 Mon Sep 17 00:00:00 2001 From: Nicolas Badoux Date: Mon, 26 Aug 2024 09:48:59 +0200 Subject: [PATCH] Free mem in cjson_set_valuestring_should_return_null_if_strings_overlap --- tests/misc_tests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/misc_tests.c b/tests/misc_tests.c index e1187f8..606b460 100644 --- a/tests/misc_tests.c +++ b/tests/misc_tests.c @@ -486,6 +486,7 @@ static void cjson_set_valuestring_should_return_null_if_strings_overlap(void) /* If it overlaps, the string will be messed up.*/ TEST_ASSERT_TRUE(strcmp(str, "bcde") == 0); TEST_ASSERT_NULL(str2); + cJSON_Delete(obj); } static void *CJSON_CDECL failing_realloc(void *pointer, size_t size)