From 734fe2f7a2d20ed0e3da669e642640c71f0ca965 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 11 Jan 2016 12:05:41 +0100 Subject: [PATCH] Fix memory leak in friend list. --- coreapi/friendlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index 517af0a22..ab669dc41 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -226,6 +226,7 @@ static LinphoneFriendList * linphone_friend_list_new(void) { static void linphone_friend_list_destroy(LinphoneFriendList *list) { if (list->display_name != NULL) ms_free(list->display_name); if (list->rls_uri != NULL) ms_free(list->rls_uri); + if (list->content_digest != NULL) ms_free(list->content_digest); if (list->event != NULL) linphone_event_unref(list->event); list->friends = ms_list_free_with_data(list->friends, (void (*)(void *))linphone_friend_unref); }