From e3207169a8499e1af4e8c752bbfd8c8351020b17 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Fri, 6 Aug 2021 10:30:33 +0900 Subject: [PATCH] Fix memory leak Change-Id: I6a80c38338103b709401b6bff4dfaa35858898d5 Signed-off-by: Minje Ahn --- test/media-content_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/media-content_test.c b/test/media-content_test.c index 0470978..45e3419 100755 --- a/test/media-content_test.c +++ b/test/media-content_test.c @@ -2462,11 +2462,14 @@ int test_ebook_text_finder(const char *keyword) book_meta_destroy(book); media_info_destroy(media); content_debug("==============================="); + g_free(book_path_list[i]); } ms_time = (end_time.tv_sec * 1000LL + end_time.tv_usec / 1000) - (start_time.tv_sec * 1000LL + start_time.tv_usec/ 1000); - content_debug("Search Time [%lld]", ms_time); + + g_free(book_path_list); + return ret; } int test_disconnect_database(void) -- 2.7.4