解决cJSON内存泄露的问题

Signed-off-by: y500286920 <yangliu158@huawei.com>
This commit is contained in:
y500286920 2022-08-02 14:57:41 +08:00
parent c53c135739
commit ed4297bd1b

View File

@ -100,5 +100,6 @@ int32_t TransAuthChannelErrorPack(int32_t errcode, const char *errMsg, char *cJs
return SOFTBUS_MEM_ERR;
}
cJSON_Delete(obj);
cJSON_free(data);
return SOFTBUS_OK;
}