From fe7f9f7c73a342420ba6d3c9f058d8da8ad7c273 Mon Sep 17 00:00:00 2001 From: Chris Parker Date: Thu, 22 Oct 2009 16:41:11 +0000 Subject: [PATCH] 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 --- src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c b/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c index a5f60b48e6..d2c9fe8a5c 100644 --- a/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c +++ b/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c @@ -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); }