From 873b2a5a2931fad6b62c85ee9f301c6003cd09d5 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Mon, 20 Feb 2023 15:05:26 +0800 Subject: [PATCH] =?UTF-8?q?TSG-13844:=20=E4=BF=AE=E5=A4=8D=E5=86=85?= =?UTF-8?q?=E5=AD=98=E6=B3=84=E6=BC=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_bridge.cpp | 6 ++++++ src/tsg_entry.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/tsg_bridge.cpp b/src/tsg_bridge.cpp index 584e4ed..2368acc 100644 --- a/src/tsg_bridge.cpp +++ b/src/tsg_bridge.cpp @@ -34,6 +34,12 @@ void free_context_label(const struct streaminfo *a_stream, int bridge_id, void * context->mid=NULL; } + if(context->hited_result!=NULL) + { + dictator_free(a_stream->threadnum, (void *)context->hited_result); + context->hited_result=NULL; + } + dictator_free(a_stream->threadnum, (void *)context); context=NULL; } diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 5b8ea56..bf5485a 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -1156,6 +1156,11 @@ static void set_shaping_result_to_project(const struct streaminfo *a_stream, str } } + if(inc_result==0) + { + return ; + } + struct notify_shaping_policy sync_result={0, {0}}; sync_result.shaping_result_num=inc_result_num; memcpy(sync_result.shaping_result, inc_result, inc_result_num*sizeof(struct Maat_rule_t));