!69 代码同步

Merge pull request !69 from youbing54/master
This commit is contained in:
openharmony_ci
2024-07-22 06:48:31 +00:00
committed by Gitee
2 changed files with 7 additions and 5 deletions
+1 -5
View File
@@ -14,11 +14,7 @@
"subsystem": "thirdparty",
"syscap": [],
"features": [],
"adapted_system_type": [
"mini",
"small",
"standard"
],
"adapted_system_type": [ "mini", "small", "standard" ],
"rom": "",
"ram": "",
"deps": {
+6
View File
@@ -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;