From: Luigi Rizzo Date: Mon, 13 Nov 2006 12:01:25 +0000 (+0000) Subject: free memory when unregistering an entry. X-Git-Tag: 1.6.0-beta1~3^2~4019 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2e2f3f9573b9fd9b8f72cca6dc16ced7f361803;p=thirdparty%2Fasterisk.git free memory when unregistering an entry. needs to be merged to 1.4 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47536 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index f51ed37a8a..b2432920c1 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1308,6 +1308,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; }