- fixed mem leak in reply send.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@701 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 19 years ago
parent ae2c180f31
commit 00eab592de

@ -301,12 +301,14 @@ int SipCtrlInterface::send(const AmSipReply &rep)
copy_hdrs_wr(&c,msg.hdrs);
content_type_wr(&c,stl2cstr(rep.content_type));
string hdrs(hdrs_buf,hdrs_len);
int ret = tl->send_reply(get_trans_bucket(h),(sip_trans*)t,
rep.code,stl2cstr(rep.reason),
stl2cstr(rep.local_tag),
cstring(hdrs_buf,hdrs_len), stl2cstr(rep.body));
return tl->send_reply(get_trans_bucket(h),(sip_trans*)t,
rep.code,stl2cstr(rep.reason),
stl2cstr(rep.local_tag),
stl2cstr(hdrs), stl2cstr(rep.body));
delete [] hdrs_buf;
return ret;
}
#define DBG_PARAM(p)\

Loading…
Cancel
Save