mirror of
https://github.com/openharmony/third_party_cJSON.git
synced 2026-07-20 21:59:36 -04:00
describe: Code synchronization Feature or Bugfix: Bugfix Binary Source:Yes Signed-off-by: youbing54<youbing3@huawei.com>
This commit is contained in:
+1
-5
@@ -14,11 +14,7 @@
|
||||
"subsystem": "thirdparty",
|
||||
"syscap": [],
|
||||
"features": [],
|
||||
"adapted_system_type": [
|
||||
"mini",
|
||||
"small",
|
||||
"standard"
|
||||
],
|
||||
"adapted_system_type": [ "mini", "small", "standard" ],
|
||||
"rom": "",
|
||||
"ram": "",
|
||||
"deps": {
|
||||
|
||||
@@ -275,10 +275,16 @@ CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)
|
||||
if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL))
|
||||
{
|
||||
global_hooks.deallocate(item->valuestring);
|
||||
item->valuestring = NULL;
|
||||
}
|
||||
if (!(item->type & cJSON_StringIsConst) && (item->string != NULL))
|
||||
{
|
||||
global_hooks.deallocate(item->string);
|
||||
item->string = NULL;
|
||||
}
|
||||
if (next == item)
|
||||
{
|
||||
break;
|
||||
}
|
||||
global_hooks.deallocate(item);
|
||||
item = next;
|
||||
|
||||
Reference in New Issue
Block a user