]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Free full command string upon unregistering of CLI command. Backported from revision...
authorJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 16:30:38 +0000 (16:30 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 16:30:38 +0000 (16:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47542 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 758f71df968c8a980db855c2fe8f1f9cd697f649..3b6b3dc298cea2923983c942d151146b53f6a7ba 100644 (file)
@@ -1414,6 +1414,7 @@ static int __ast_cli_unregister(struct ast_cli_entry *e, struct ast_cli_entry *e
                AST_LIST_LOCK(&helpers);
                AST_LIST_REMOVE(&helpers, e, list);
                AST_LIST_UNLOCK(&helpers);
+               free(e->_full_cmd);
        }
        return 0;
 }