mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
Use the mailbox destructor function, instead.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -25439,7 +25439,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
|
||||
AST_LIST_TRAVERSE_SAFE_BEGIN(&peer->mailboxes, mailbox, entry) {
|
||||
if (mailbox->delme) {
|
||||
AST_LIST_REMOVE_CURRENT(entry);
|
||||
ast_free(mailbox);
|
||||
destroy_mailbox(mailbox);
|
||||
}
|
||||
}
|
||||
AST_LIST_TRAVERSE_SAFE_END;
|
||||
|
Reference in New Issue
Block a user