Commit ba100f07 authored by Simon Morlat's avatar Simon Morlat

fix memory leaks

parent aadad2dd
......@@ -270,6 +270,7 @@ bool_t linphone_call_params_video_multicast_enabled(const LinphoneCallParams *pa
static void _linphone_call_params_destroy(LinphoneCallParams *cp){
if (cp->record_file) ms_free(cp->record_file);
if (cp->custom_headers) sal_custom_header_free(cp->custom_headers);
if (cp->session_name) ms_free(cp->session_name);
}
LinphoneCallParams * linphone_call_params_new(void) {
......
mediastreamer2 @ 202a3f57
Subproject commit 27fc72b2dc288ed15db9802ab9978b2e82d53cf2
Subproject commit 202a3f574f59c0160ebd76891ad4b06b7e361851
......@@ -3476,12 +3476,13 @@ void two_accepted_call_in_send_only() {
reset_counters(&marie->stat);
accept_call_in_send_only_base(laure,marie,lcs);
end_call(marie,pauline);
end_call(laure,marie);
end_call(pauline, marie);
end_call(laure, marie);
linphone_core_manager_destroy(marie);
linphone_core_manager_destroy(pauline);
linphone_core_manager_destroy(laure);
ms_list_free(lcs);
}
#endif
......
......@@ -204,7 +204,7 @@ static void test_complete_message_handler(const CU_pTest pTest, const CU_pSuite
}
bc_tester_printf(bc_printf_verbosity_info,"%s", result);
free(result);
if (test_suite[suite_index]->after_each) {
test_suite[suite_index]->after_each();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment