mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 20:38:59 +00:00
Fix small memory leak... (bug #2277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1
pbx.c
1
pbx.c
@@ -2856,6 +2856,7 @@ int ast_unregister_application(char *app) {
|
|||||||
apps = tmp->next;
|
apps = tmp->next;
|
||||||
if (option_verbose > 1)
|
if (option_verbose > 1)
|
||||||
ast_verbose( VERBOSE_PREFIX_2 "Unregistered application '%s'\n", tmp->name);
|
ast_verbose( VERBOSE_PREFIX_2 "Unregistered application '%s'\n", tmp->name);
|
||||||
|
free(tmp);
|
||||||
ast_mutex_unlock(&applock);
|
ast_mutex_unlock(&applock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user