mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
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
This commit is contained in:
@@ -149,7 +149,9 @@ static int nocdr_exec(struct ast_channel *chan, const char *data)
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user