Fix small memory leak... (bug #2277)
[asterisk/asterisk.git] / 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;
                }