Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 078c4e6

Browse files
vwvwAlanscut
authored andcommitted
Free mem in cjson_set_valuestring_should_return_null_if_strings_overlap
1 parent 4f4d7f7 commit 078c4e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎tests/misc_tests.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ static void cjson_set_valuestring_should_return_null_if_strings_overlap(void)
486486
/* If it overlaps, the string will be messed up.*/
487487
TEST_ASSERT_TRUE(strcmp(str, "bcde") == 0);
488488
TEST_ASSERT_NULL(str2);
489+
cJSON_Delete(obj);
489490
}
490491

491492
static void *CJSON_CDECL failing_realloc(void *pointer, size_t size)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /