aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-23 11:04:25 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-23 11:04:25 +0000
commit25a76c637df7a56f2585903076d0bb8e50dd6ff1 (patch)
treee0882405d9249eb2d4273757813de3f40828693a /channels
parent3296183846b184b7947b5670feb7acad1cbc89bc (diff)
Remove unused memory allocation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47960 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e7c7ef449..2dfa19da6 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 */