[asterisk-commits] jpeeler: branch 1.6.0 r177445 - /branches/1.6.0/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 19 11:40:17 CST 2009


Author: jpeeler
Date: Thu Feb 19 11:40:16 2009
New Revision: 177445

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177445
Log:
Remove invalid ast_free calls for static character arrays

(issue #14478)
Reported by: erik_dedecker


Modified:
    branches/1.6.0/channels/chan_sip.c

Modified: branches/1.6.0/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/channels/chan_sip.c?view=diff&rev=177445&r1=177444&r2=177445
==============================================================================
--- branches/1.6.0/channels/chan_sip.c (original)
+++ branches/1.6.0/channels/chan_sip.c Thu Feb 19 11:40:16 2009
@@ -15977,8 +15977,6 @@
 
 	if (!transferee || !transferer) {
 		ast_log(LOG_ERROR, "Missing channels for parking! Transferer %s Transferee %s\n", transferer ? "<available>" : "<missing>", transferee ? "<available>" : "<missing>" );
-		if (d->req.data)
-			ast_free(d->req.data);
 		free(d);
 		return NULL;
 	}
@@ -15989,8 +15987,6 @@
 		ast_log(LOG_WARNING, "Masquerade failed.\n");
 		transmit_response(transferer->tech_pvt, "503 Internal error", &req);
 		ast_channel_unlock(transferee);
-		if (d->req.data)
-			ast_free(d->req.data);
 		free(d);
 		return NULL;
 	} 
@@ -16025,8 +16021,6 @@
 		ast_debug(1, "SIP Call parked failed \n");
 		/* Do not hangup call */
 	}
-	if (d->req.data)
-		ast_free(d->req.data);
 	free(d);
 	return NULL;
 }




More information about the asterisk-commits mailing list