Skip to content
Snippets Groups Projects
Commit bfdb9731 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Use the mailbox destructor function, instead.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8b790e4f
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment