From: Alan Wang Date: Thu, 2 Apr 2020 11:41:56 +0000 (+0800) Subject: Merge pull request #453 from Alanscut/add-return-value X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=65578af8cc021f9b14264e191a5ce42c28b034e9;p=0xmirror%2FcJSON.git Merge pull request #453 from Alanscut/add-return-value add return value for cJSON_AddItemTo... and cJSON_ReplaceItemxxx --- 65578af8cc021f9b14264e191a5ce42c28b034e9 diff --cc tests/misc_tests.c index 54ae480,714c44d..3bf0a1c --- a/tests/misc_tests.c +++ b/tests/misc_tests.c @@@ -657,9 -625,9 +675,10 @@@ int CJSON_CDECL main(void RUN_TEST(cjson_create_string_reference_should_create_a_string_reference); RUN_TEST(cjson_create_object_reference_should_create_an_object_reference); RUN_TEST(cjson_create_array_reference_should_create_an_array_reference); + RUN_TEST(cjson_add_item_to_object_or_array_should_not_add_itself); RUN_TEST(cjson_add_item_to_object_should_not_use_after_free_when_string_is_aliased); RUN_TEST(cjson_delete_item_from_array_should_not_broken_list_structure); + RUN_TEST(cjson_set_valuestring_to_object_should_not_leak_memory); return UNITY_END(); }