summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author刘学利 <[email protected]>2021-09-26 14:25:41 +0000
committer刘学利 <[email protected]>2021-09-26 14:25:41 +0000
commit6f6774e7958db9c5023967aec5187f52ef49be6e (patch)
tree621a1c917457bfafd657ac91e3d415ad130a3b3c
parentc3249dd4679189319a5337b99fa63435f428b2ed (diff)
TSG-7945: 当HTTP新建全命中Monitor策略时,Sapp内存泄露被OOM; tsg_master命中监测策略且不需镜像到第三方时, 扫描的中间状态未释放导致内存泄漏v5.4.1
-rw-r--r--src/tsg_action.cpp2
-rw-r--r--src/tsg_entry.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp
index 38ebeca..5c163c6 100644
--- a/src/tsg_action.cpp
+++ b/src/tsg_action.cpp
@@ -13,7 +13,7 @@
#include <MESA/ssl.h>
#include <MESA/mail.h>
#include <MESA/gquic.h>
-#include "MESA/mesa_sip.h"
+#include "MESA/sip.h"
#include <MESA/stream.h>
#include <MESA/MESA_handle_logger.h>
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 9aafac5..5effca2 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -10,7 +10,7 @@
#include <MESA/ssl.h>
#include <MESA/mail.h>
#include <MESA/gquic.h>
-#include "MESA/mesa_sip.h"
+#include "MESA/sip.h"
#include <MESA/stream.h>
#include <MESA/MESA_prof_load.h>
#include <MESA/MESA_handle_logger.h>
@@ -1638,6 +1638,8 @@ static unsigned char tsg_master_all_entry(const struct streaminfo *a_stream, uns
ret=tsg_set_vlan_id_to_tcpall(a_stream, (struct tcpall_context**)pme, vlan, vlan_num, thread_seq);
if(ret<=0)
{
+ Maat_clean_status(&scan_mid);
+ scan_mid=NULL;
return state;
}
context=(struct tcpall_context*)(*pme);