mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
fix(c-content): avoid memory leak in sal_body_handler_from_content
This commit is contained in:
parent
6fcc907636
commit
ab47110568
1 changed files with 1 additions and 0 deletions
|
|
@ -315,6 +315,7 @@ SalBodyHandler *sal_body_handler_from_content (const LinphoneContent *content) {
|
|||
const char *boundary = L_STRING_TO_C(contentType.getParameter("boundary").getValue());
|
||||
belle_sip_multipart_body_handler_t *bh = belle_sip_multipart_body_handler_new_from_buffer(buffer, size, boundary);
|
||||
body_handler = (SalBodyHandler *)BELLE_SIP_BODY_HANDLER(bh);
|
||||
bctbx_free(buffer);
|
||||
} else {
|
||||
body_handler = sal_body_handler_new();
|
||||
sal_body_handler_set_data(body_handler, belle_sip_strdup(linphone_content_get_string_buffer(content)));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue