diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-30 02:35:57 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-30 02:35:57 +0000 |
commit | 86fe36e742209925fce385d86bd74d63cb0c4d41 (patch) | |
tree | 7460ce3247a0e51e4c9be6ce76c170ab2f3ef3be | |
parent | 2849d2ffc2af89a6d95349fe0ba4e9073cd5c258 (diff) |
Merged revisions 198248 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r198248 | file | 2009-05-29 23:31:48 -0300 (Fri, 29 May 2009) | 2 lines
When removing all packets from a dialog we also need to free the data if present.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@198250 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 15a9e30ba..9e0338ca3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2945,6 +2945,9 @@ static void *dialog_unlink_all(struct sip_pvt *dialog, int lockowner, int lockdi dialog->packets = dialog->packets->next; AST_SCHED_DEL(sched, cp->retransid); dialog_unref(cp->owner, "remove all current packets in this dialog, and the pointer to the dialog too as part of __sip_destroy"); + if (cp->data) { + ast_free(cp->data); + } ast_free(cp); } |