Open kuaikuai opened 6 years ago
temp0 = cJSON_GetObjectItem(server_next, "value"); if (temp0 != NULL && ngx_strlen(temp0->valuestring) != 0) { cJSON *sub_attribute = cJSON_Parse((char *)temp0->valuestring); if (sub_attribute == NULL) { ngx_log_error(NGX_LOG_ERR, ngx_cycle->log, 0, "upsync_parse_json: \'%s\' is invalid", temp0->valuestring); continue; }
sub_attribute没有调用cJSON_Delete释放内存。是否需要释放?
It's NULL?
确实是有内存泄漏 cJSON_Delete后内存正常
@lvphpwb Do you have a test? Thanks.
sub_attribute没有调用cJSON_Delete释放内存。是否需要释放?