aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 16:30:38 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 16:30:38 +0000
commit2473ff0edcc96c13c643970f5fe85f14f0935929 (patch)
tree92998a657e99b63bc0a95dc9ea33cc9330ca084d /main
parent5abf54b308b33bad778fad69a8984bdc5135a5db (diff)
Free full command string upon unregistering of CLI command. Backported from revision 47536 from rizzo.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47542 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c
index 758f71df9..3b6b3dc29 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;
}