Fix small memory leak... (bug #2277)
authorMark Spencer <markster@digium.com>
Sat, 21 Aug 2004 18:49:52 +0000 (18:49 +0000)
committerMark Spencer <markster@digium.com>
Sat, 21 Aug 2004 18:49:52 +0000 (18:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3629 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index d5db645..83eb482 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -2856,6 +2856,7 @@ int ast_unregister_application(char *app) {
                                apps = tmp->next;
                        if (option_verbose > 1)
                                ast_verbose( VERBOSE_PREFIX_2 "Unregistered application '%s'\n", tmp->name);
+                       free(tmp);
                        ast_mutex_unlock(&applock);
                        return 0;
                }