[asterisk-commits] file: branch 1.6.2 r198250 - in /branches/1.6.2: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 29 21:36:01 CDT 2009
Author: file
Date: Fri May 29 21:35:57 2009
New Revision: 198250
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198250
Log:
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.
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/channels/chan_sip.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=198250&r1=198249&r2=198250
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Fri May 29 21:35:57 2009
@@ -2945,6 +2945,9 @@
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);
}
More information about the asterisk-commits
mailing list