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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@202612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Mark Michelson 17 years ago
parent 436dce6109
commit b535dda70c

@ -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;
}

Loading…
Cancel
Save