mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-03 06:53:07 +07:00
Add cJSON_Allocators new style allocator struct
This commit is contained in:
@@ -53,7 +53,7 @@ static void assert_parse_string(const char *string, const char *expected)
|
||||
TEST_ASSERT_TRUE_MESSAGE(parse_string(item, &buffer), "Couldn't parse string.");
|
||||
assert_is_string(item);
|
||||
TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, item->valuestring, "The parsed result isn't as expected.");
|
||||
global_configuration.deallocate(item->valuestring);
|
||||
global_configuration.allocators.deallocate(item->valuestring, global_configuration.userdata);
|
||||
item->valuestring = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user