From: Olle Johansson Date: Thu, 23 Nov 2006 11:04:25 +0000 (+0000) Subject: Remove unused memory allocation X-Git-Tag: 1.6.0-beta1~3^2~3884 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4cc4d03c9fe8da77e190e280be64fe8003c7aa1;p=thirdparty%2Fasterisk.git Remove unused memory allocation git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47960 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e7c7ef4491..2dfa19da6a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14549,7 +14549,6 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc { /* Called with p->lock held, as well as p->owner->lock if appropriate, keeping things relatively static */ - struct sip_request resp; const char *cmd; const char *cseq; const char *useragent; @@ -14561,9 +14560,6 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc char *e; int error = 0; - /* Clear out potential response */ - memset(&resp, 0, sizeof(resp)); - /* Get Method and Cseq */ cseq = get_header(req, "Cseq"); cmd = req->header[0]; @@ -17119,6 +17115,7 @@ static int sip_do_reload(enum channelreloadreason reason) sip_destroy(iterator->call); } ASTOBJ_UNLOCK(iterator); + } while(0)); /* Then, actually destroy users and registry */