Apply patch_2.txt from MODEVENT-55 to reduce memory leakage.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15198 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2306fe2730
commit
fe7f9f7c73
|
@ -369,7 +369,9 @@ static switch_status_t my_on_routing(switch_core_session_t *session)
|
|||
retval = SWITCH_STATUS_TERM;
|
||||
}
|
||||
rc_avpair_free(send);
|
||||
rc_destroy(rad_config);
|
||||
end:
|
||||
switch_xml_free(cdr);
|
||||
switch_thread_rwlock_unlock(globals.rwlock);
|
||||
return (retval);
|
||||
}
|
||||
|
@ -641,8 +643,10 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
|
|||
retval = SWITCH_STATUS_TERM;
|
||||
}
|
||||
rc_avpair_free(send);
|
||||
rc_destroy(rad_config);
|
||||
|
||||
end:
|
||||
switch_xml_free(cdr);
|
||||
switch_thread_rwlock_unlock(globals.rwlock);
|
||||
return (retval);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue