[svn-commits] file: trunk r198248 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 29 21:31:52 CDT 2009


Author: file
Date: Fri May 29 21:31:48 2009
New Revision: 198248

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198248
Log:
When removing all packets from a dialog we also need to free the data if present.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=198248&r1=198247&r2=198248
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri May 29 21:31:48 2009
@@ -3079,6 +3079,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 svn-commits mailing list