From: Joshua Colp Date: Mon, 13 Nov 2006 16:30:38 +0000 (+0000) Subject: Free full command string upon unregistering of CLI command. Backported from revision... X-Git-Tag: 1.4.0-beta4~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6351e6bb2ce1c07a46a6676cc7b4f82066d5876c;p=thirdparty%2Fasterisk.git Free full command string upon unregistering of CLI command. Backported from revision 47536 from rizzo. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47542 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 758f71df96..3b6b3dc298 100644 --- a/main/cli.c +++ b/main/cli.c @@ -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; }