diff --git a/coreapi/bellesip_sal/sal_impl.c b/coreapi/bellesip_sal/sal_impl.c index af7d077c7..d73142e71 100644 --- a/coreapi/bellesip_sal/sal_impl.c +++ b/coreapi/bellesip_sal/sal_impl.c @@ -483,9 +483,9 @@ void sal_uninit(Sal* sal){ belle_sip_object_unref(sal->prov); belle_sip_object_unref(sal->stack); belle_sip_object_unref(sal->listener); + if (sal->uuid) ms_free(sal->uuid); if (sal->root_ca) ms_free(sal->root_ca); ms_free(sal); - return ; }; int sal_add_listen_port(Sal *ctx, SalAddress* addr){ diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 33f30c32e..50adc5007 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5651,7 +5651,9 @@ static void linphone_core_uninit(LinphoneCore *lc) if(lc->rec_file!=NULL){ ms_free(lc->rec_file); } - + if(lc->presence_model){ + linphone_presence_model_unref(lc->presence_model); + } linphone_core_free_payload_types(lc); linphone_core_message_storage_close(lc); diff --git a/coreapi/sal.c b/coreapi/sal.c index 69ee5b6c2..7d471a7c8 100644 --- a/coreapi/sal.c +++ b/coreapi/sal.c @@ -483,6 +483,7 @@ void sal_auth_info_delete(SalAuthInfo* auth_info) { if (auth_info->realm) ms_free(auth_info->realm); if (auth_info->domain) ms_free(auth_info->domain); if (auth_info->password) ms_free(auth_info->password); + if (auth_info->ha1) ms_free(auth_info->ha1); if (auth_info->certificates) sal_certificates_chain_delete(auth_info->certificates); if (auth_info->key) sal_signing_key_delete(auth_info->key); ms_free(auth_info);