describe: Code synchronization
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
This commit is contained in:
youbing54
2024-07-22 10:55:13 +08:00
parent fbc3b6a37a
commit 1bc8ffbc12
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;