summaryrefslogtreecommitdiff
path: root/res/res_parking.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2013-09-27 21:58:05 +0000
committerRichard Mudgett <rmudgett@digium.com>2013-09-27 21:58:05 +0000
commit2b32732aa814647d5a098043225c9a66eefb76d9 (patch)
tree98510028754a0e96eeca7e9ce5edfb7355eef933 /res/res_parking.c
parent9f19d096e329d435d982723295c0c727ab13dfb7 (diff)
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 ........ Merged revisions 400020 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_parking.c')
-rw-r--r--res/res_parking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_parking.c b/res/res_parking.c
index 12893dba2..211bbf8a8 100644
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -1169,6 +1169,7 @@ static int unload_module(void)
ao2_cleanup(parking_lot_container);
parking_lot_container = NULL;
aco_info_destroy(&cfg_info);
+ ao2_global_obj_release(globals);
return 0;
}