summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2021-10-20 11:11:14 +0900
committerJiyong Min <jiyong.min@samsung.com>2021-10-20 11:11:14 +0900
commit62dfb7831a75e693cc86c0094aed34b2bf977776 (patch)
tree625a589605267040154c40e251b3ba6a93de36df
parent34d7b035d7a03a31bf4c02292e195f6b0f602990 (diff)
downloadlibheif-62dfb7831a75e693cc86c0094aed34b2bf977776.tar.gz
libheif-62dfb7831a75e693cc86c0094aed34b2bf977776.tar.bz2
libheif-62dfb7831a75e693cc86c0094aed34b2bf977776.zip
fix memory leak on testsuitesubmit/tizen/20211115.041112
Change-Id: I6f604872f45cd2bfe15fbac6fbeff537905c43a9
-rw-r--r--test/heif_testsuite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/heif_testsuite.c b/test/heif_testsuite.c
index 21d4d2c..120471f 100644
--- a/test/heif_testsuite.c
+++ b/test/heif_testsuite.c
@@ -378,6 +378,7 @@ static bool __test_decode(int mode)
ret = heif_decode_image_from_buffer((unsigned char *)((void *)buffer), (size_t)size, g_color, &image);
if (ret != LIBHEIF_ERROR_NONE) {
g_print("\t[HEIF_TEST] heif_decode_image_from_buffer fail %d\n", ret);
+ g_free(buffer);
return false;
}
@@ -442,6 +443,7 @@ static bool __test_thumb(int mode)
ret = heif_decode_thumb_from_buffer((unsigned char *)((void *)buffer), (size_t)size, g_color, &thumbnail);
if (ret != LIBHEIF_ERROR_NONE) {
g_print("\t[HEIF_TEST] heif_decode_thumb_from_buffer fail %d\n", ret);
+ g_free(buffer);
return false;
}