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; }