From b1eb071513545fde5b6c77ce7d53be66756e7aff Mon Sep 17 00:00:00 2001 From: Jusung Son Date: Tue, 4 Aug 2020 10:10:30 +0900 Subject: [PATCH] Fix RESOURCE_LEAK issue Change-Id: I094cbae845857eb8420292cc43bc3b053a78a9fc Signed-off-by: Jusung Son --- unittest/src/test-watchface-complication-provider.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittest/src/test-watchface-complication-provider.cc b/unittest/src/test-watchface-complication-provider.cc index 94fd3dd..0e25687 100644 --- a/unittest/src/test-watchface-complication-provider.cc +++ b/unittest/src/test-watchface-complication-provider.cc @@ -695,6 +695,8 @@ TEST_F(CWCP, watchface_complication_provider_event_get_context) bundle_free(touch_data); bundle_free(shared); bundle_free(context); + if (ret == WATCHFACE_COMPLICATION_ERROR_NONE) + bundle_free(ret_context); EXPECT_EQ(WATCHFACE_COMPLICATION_ERROR_NONE, ret); ret = watchface_complication_provider_event_get_context( -- 2.7.4