aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-23 15:25:03 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-23 15:25:03 +0000
commit95537e03ee09bb05d9f90b64209699134d564acc (patch)
tree9be328630445b8609b924983c8ca1e9f1b90f564
parentf1e5c6a675a2e4adfe6030f86b7d1cea06dca3b0 (diff)
Merged revisions 202603 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r202603 | mmichelson | 2009-06-23 10:23:00 -0500 (Tue, 23 Jun 2009) | 8 lines Blocked revisions 202601 via svnmerge ........ r202601 | mmichelson | 2009-06-23 10:22:35 -0500 (Tue, 23 Jun 2009) | 3 lines Fix more memory leaks that may result if rtp is not successfully allocated. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@202612 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index fa5374318..bfe649135 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6103,11 +6103,15 @@ static struct sip_pvt *sip_alloc(ast_string_field callid, struct sockaddr_in *si
if (p->vrtp) {
ast_rtp_destroy(p->vrtp);
}
+ if (p->udptl) {
+ ast_udptl_destroy(p->udptl);
+ }
ast_mutex_destroy(&p->pvt_lock);
if (p->chanvars) {
ast_variables_destroy(p->chanvars);
p->chanvars = NULL;
}
+ ast_string_field_free_memory(p);
ast_free(p);
return NULL;
}