[asterisk-commits] oej: branch oej/sip_request_size_8556 r64564 - /team/oej/sip_request_size_855...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed May 16 02:50:15 MST 2007


Author: oej
Date: Wed May 16 04:50:15 2007
New Revision: 64564

URL: http://svn.digium.com/view/asterisk?view=rev&rev=64564
Log:
Fix first possible memory leak

Modified:
    team/oej/sip_request_size_8556/channels/chan_sip.c

Modified: team/oej/sip_request_size_8556/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/sip_request_size_8556/channels/chan_sip.c?view=diff&rev=64564&r1=64563&r2=64564
==============================================================================
--- team/oej/sip_request_size_8556/channels/chan_sip.c (original)
+++ team/oej/sip_request_size_8556/channels/chan_sip.c Wed May 16 04:50:15 2007
@@ -1626,6 +1626,8 @@
 	if (p->initreq.headers && option_debug) {
 		ast_log(LOG_DEBUG, "Initializing already initialized SIP dialog %s (presumably reinvite)\n", p->callid);
 	}
+	if(p->initreq.data)
+		free(p->initreq.data);	/* De allocate memory before we overwrite */
 	/* Use this as the basis */
 	copy_request(&p->initreq, req);
 	parse_request(&p->initreq);



More information about the asterisk-commits mailing list