mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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
This commit is contained in:
@@ -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_LOCK(&helpers);
|
||||||
AST_LIST_REMOVE(&helpers, e, list);
|
AST_LIST_REMOVE(&helpers, e, list);
|
||||||
AST_LIST_UNLOCK(&helpers);
|
AST_LIST_UNLOCK(&helpers);
|
||||||
|
free(e->_full_cmd);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user