From: jiyong.min Date: Wed, 22 Jul 2020 00:12:05 +0000 (+0900) Subject: Fix 'g_readed_data' double free X-Git-Tag: accepted/tizen/unified/20200723.161301^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=670de108a03676fba2b12f31993433b5935638b7;p=platform%2Fcore%2Fmultimedia%2Flibmm-utility.git Fix 'g_readed_data' double free Change-Id: Ib784ddeed989495eea06ce7c77d32d0d637b133a --- diff --git a/gif/test/mm_util_gif_testsuite.c b/gif/test/mm_util_gif_testsuite.c index 2645104..feea015 100644 --- a/gif/test/mm_util_gif_testsuite.c +++ b/gif/test/mm_util_gif_testsuite.c @@ -332,6 +332,7 @@ gboolean _test_auto() fprintf(stderr, "\t[GIF_testsuite] >>>>>>>>>>>>>>>>>>>>>> \'%s\' TEST SUCCESS\n", MODE_TO_STR[test_mode]); g_free(g_readed_data); + g_readed_data = NULL; SAFE_IMAGE_FREE(g_decoded_data); test_mode++; } @@ -376,7 +377,7 @@ int main(int argc, char *argv[]) out: g_free(g_path); - SAFE_FREE(g_readed_data); + g_free(g_readed_data); SAFE_IMAGE_FREE(g_decoded_data); return 0;