Fix memory leak 78/262278/1 accepted/tizen/unified/20210810.135306 submit/tizen/20210806.021908 submit/tizen/20210806.065720 submit/tizen/20210810.004823
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 6 Aug 2021 01:30:33 +0000 (10:30 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 6 Aug 2021 01:30:33 +0000 (10:30 +0900)
Change-Id: I6a80c38338103b709401b6bff4dfaa35858898d5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
test/media-content_test.c

index 0470978..45e3419 100755 (executable)
@@ -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)