TSG-13844: 修复内存泄漏的问题

This commit is contained in:
liuxueli
2023-02-20 15:05:26 +08:00
parent 9feef2359a
commit 873b2a5a29
2 changed files with 11 additions and 0 deletions

View File

@@ -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));