[TSAM-12752] memory leak issue fixed 22/113122/1 accepted/tizen/3.0/common/20170208.145453 accepted/tizen/3.0/ivi/20170208.083937 accepted/tizen/3.0/mobile/20170208.083826 accepted/tizen/3.0/wearable/20170208.083906 submit/tizen_3.0/20170208.044714
authorKyeonghun Lee <kh9090.lee@samsung.com>
Mon, 6 Feb 2017 07:17:41 +0000 (16:17 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Mon, 6 Feb 2017 07:18:00 +0000 (23:18 -0800)
Change-Id: I0061f49da3724b95f605d56511605bbfa794cb5c

src/messages.c

index 663a5855313d3363f603ed08a284b376985946da..8b331ac702b19eb47ed603866a975c247d2fafbd 100644 (file)
@@ -678,6 +678,7 @@ int messages_search_message(messages_service_h service, messages_message_box_e m
                *total = -1;                    /* TODO: total count is not supported yet. */
 
        /* TODO: where should I free msg_list? */
+       g_free(msg_list.msg_struct_info);
 
        return MESSAGES_ERROR_NONE;
 }