summaryrefslogtreecommitdiff
path: root/plugin/business/doh/src/doh.cpp
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2020-06-24 11:00:59 +0800
committerluwenpeng <[email protected]>2020-07-06 16:16:21 +0800
commitb4683daf324b83f8284439992b46158d58b40e30 (patch)
tree0f24dddd0b5ca0260b9a61b8815ffc32489ad82d /plugin/business/doh/src/doh.cpp
parentcd26e3e6c1a0189a0834dcf11efb35616d19b9e7 (diff)
TSG-1531 调用 Maat_clean_status 释放资源;删除重复的代码文件
Diffstat (limited to 'plugin/business/doh/src/doh.cpp')
-rw-r--r--plugin/business/doh/src/doh.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp
index 835608f..1bb9e02 100644
--- a/plugin/business/doh/src/doh.cpp
+++ b/plugin/business/doh/src/doh.cpp
@@ -371,6 +371,9 @@ static void doh_ctx_free(struct doh_ctx *ctx)
ctx->doh_req = NULL;
}
+ Maat_clean_status(&(ctx->scan_mid));
+ ctx->scan_mid = NULL;
+
if (ctx->opts_num)
{
free(ctx->opts);