aboutsummaryrefslogtreecommitdiff
path: root/tests/misc_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc_tests.c')
-rw-r--r--tests/misc_tests.c1
1 files changed, 1 insertions, 0 deletions
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)