From: Tilghman Lesher Date: Mon, 7 Jun 2010 22:56:53 +0000 (+0000) Subject: Use the mailbox destructor function, instead. X-Git-Tag: 11.0.0-beta1~2889 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfdb973191e4845fb82e90d459a20678bad2a24c;p=thirdparty%2Fasterisk.git Use the mailbox destructor function, instead. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268818 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d65471da1a..a1bfcfe7ef 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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;