diff options
| author | fengweihao <[email protected]> | 2024-02-26 16:08:06 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2024-02-26 16:08:06 +0800 |
| commit | e834b5ad007fefc318657083ee7d0662766b7d21 (patch) | |
| tree | a04ea53ab0085fdc4101903ed3988bc0eb86ce79 /platform/src | |
| parent | 32bc9569d7676c166b3352ad755a19dc40da1170 (diff) | |
bugfix:修复请求Condition中含有Protocol或者Tunnel时,复制Json的Object的对象没有释放v4.0.10-20240226
Diffstat (limited to 'platform/src')
| -rw-r--r-- | platform/src/verify_matcher.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/src/verify_matcher.cpp b/platform/src/verify_matcher.cpp index 6d25a41..dc96fa1 100644 --- a/platform/src/verify_matcher.cpp +++ b/platform/src/verify_matcher.cpp @@ -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; } } |
