TSG-13844: 修复内存泄漏的问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user