From e9ad2787d158422ecbca122ecce975bc2f036c70 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 10 Dec 2013 17:07:44 +0100 Subject: [PATCH] Free memory allocated by belle_sip_malloc() with belle_sip_free(). --- coreapi/bellesip_sal/sal_op_presence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/bellesip_sal/sal_op_presence.c b/coreapi/bellesip_sal/sal_op_presence.c index bdc58388b..2e6ea3fcd 100644 --- a/coreapi/bellesip_sal/sal_op_presence.c +++ b/coreapi/bellesip_sal/sal_op_presence.c @@ -28,7 +28,7 @@ void sal_add_presence_info(SalOp *op, belle_sip_message_t *notify, SalPresenceMo belle_sip_header_from_t *from=belle_sip_message_get_header_by_type(notify,belle_sip_header_from_t); contact_info=belle_sip_uri_to_string(belle_sip_header_address_get_uri(BELLE_SIP_HEADER_ADDRESS(from))); op->base.root->callbacks.convert_presence_to_xml_requested(op, presence, contact_info, &content); - ms_free(contact_info); + belle_sip_free(contact_info); if (content == NULL) return; }