summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-08-21 18:49:52 +0000
committerMark Spencer <markster@digium.com>2004-08-21 18:49:52 +0000
commitd0ab0358aac1c0874192064585de0ad4d85b0ef4 (patch)
tree873430f1a3524673b22d272a831f5386dcccbb06
parent4f9f6df42c54f2c99ad3e649ae057b99aaab6d6e (diff)
Fix small memory leak... (bug #2277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xpbx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index d5db64560..83eb48243 100755
--- 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;
}