bugfix:修复请求Condition中含有Protocol或者Tunnel时,复制Json的Object的对象没有释放

This commit is contained in:
fengweihao
2024-02-26 16:08:06 +08:00
parent 32bc9569d7
commit e834b5ad00

View File

@@ -1105,6 +1105,10 @@ void http_get_scan_status(struct request_query_obj *query_obj, int compile_table
if(query_obj->table_id == TSG_OBJ_IP_PROTOCOL)
{
if(query_obj->attributes)
{
cJSON_Delete(query_obj->attributes);
}
return;
}
@@ -1118,6 +1122,10 @@ void http_get_scan_status(struct request_query_obj *query_obj, int compile_table
{
if(0 == strcasecmp(item->valuestring, "tunnel_endpointa"))
{
if(query_obj->attributes)
{
cJSON_Delete(query_obj->attributes);
}
return;
}
}