mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-18 20:50:17 +00:00
fix 2 memory leaks detected by valgrind run
This commit is contained in:
parent
179f6b57a6
commit
7ba5197009
@ -3339,6 +3339,10 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
|
|||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
|
if (x_user) {
|
||||||
|
switch_xml_free(x_user);
|
||||||
|
}
|
||||||
|
|
||||||
switch_xml_free(xml);
|
switch_xml_free(xml);
|
||||||
|
|
||||||
if (params) {
|
if (params) {
|
||||||
|
@ -164,6 +164,10 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
|
|||||||
write_cdr(sql);
|
write_cdr(sql);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
|
||||||
|
if (expanded_vars != template_str) {
|
||||||
|
switch_safe_free(expanded_vars);
|
||||||
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user