Use the mailbox destructor function, instead.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 7 Jun 2010 22:56:53 +0000 (22:56 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 7 Jun 2010 22:56:53 +0000 (22:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268818 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d65471d..a1bfcfe 100644 (file)
@@ -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;