[asterisk-commits] rmudgett: branch 12 r400020 - in /branches/12: apps/app_cdr.c res/res_parking.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 27 16:56:17 CDT 2013
Author: rmudgett
Date: Fri Sep 27 16:56:15 2013
New Revision: 400020
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400020
Log:
app_cdr and res_parking: Fix some resource leaks.
* app_cdr left the ResetCDR application registered.
* res_parking leaked a ref to config global.
(closes issue ASTERISK-22566)
Reported by: Corey Farrell
Patches:
ASTERISK-22566-r2.patch (license #5909) patch uploaded by Corey Farrell
Modified:
branches/12/apps/app_cdr.c
branches/12/res/res_parking.c
Modified: branches/12/apps/app_cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/apps/app_cdr.c?view=diff&rev=400020&r1=400019&r2=400020
==============================================================================
--- branches/12/apps/app_cdr.c (original)
+++ branches/12/apps/app_cdr.c Fri Sep 27 16:56:15 2013
@@ -149,7 +149,9 @@
static int unload_module(void)
{
- return ast_unregister_application(nocdr_app);
+ ast_unregister_application(nocdr_app);
+ ast_unregister_application(resetcdr_app);
+ return 0;
}
static int load_module(void)
Modified: branches/12/res/res_parking.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_parking.c?view=diff&rev=400020&r1=400019&r2=400020
==============================================================================
--- branches/12/res/res_parking.c (original)
+++ branches/12/res/res_parking.c Fri Sep 27 16:56:15 2013
@@ -1169,6 +1169,7 @@
ao2_cleanup(parking_lot_container);
parking_lot_container = NULL;
aco_info_destroy(&cfg_info);
+ ao2_global_obj_release(globals);
return 0;
}
More information about the asterisk-commits
mailing list