From 216ace35458df4e611970d9fc7a516ad38bd297c Mon Sep 17 00:00:00 2001 From: shilei Date: Wed, 23 Nov 2022 23:06:58 +0800 Subject: [PATCH] fixed 06e5c7f from https://gitee.com/shilei91/xts_acts/pulls/6663 add Signed-off-by: shilei Change-Id: Ia0a38346609e92f5308841f20f56d8cdcea104e5 --- appexecfwk_lite/appexecfwk_hal/src/bundle_mgr_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appexecfwk_lite/appexecfwk_hal/src/bundle_mgr_test.c b/appexecfwk_lite/appexecfwk_hal/src/bundle_mgr_test.c index dff1b21e0..02a86ea7e 100755 --- a/appexecfwk_lite/appexecfwk_hal/src/bundle_mgr_test.c +++ b/appexecfwk_lite/appexecfwk_hal/src/bundle_mgr_test.c @@ -84,6 +84,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearAbilityInfoIllegal, Function | Mediu TEST_ASSERT_EQUAL(err, EOK); ClearAbilityInfo(NULL); TEST_ASSERT_EQUAL_STRING(abilityInfo.bundleName, name); + free(abilityInfo.bundleName); printf("------end testClearAbilityInfoIllegal------\n"); } @@ -129,6 +130,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearBundleInfoIllegal, Function | Medium TEST_ASSERT_EQUAL(err, EOK); ClearBundleInfo(NULL); TEST_ASSERT_EQUAL_STRING(bundleInfo.bundleName, name); + free(bundleInfo.bundleName); printf("------end testClearBundleInfoIllegal------\n"); } @@ -174,6 +176,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearModuleInfoIllegal, Function | Medium TEST_ASSERT_EQUAL(err, EOK); ClearModuleInfo(NULL); TEST_ASSERT_EQUAL_STRING(moduleInfo.moduleName, name); + free(moduleInfo.moduleName); printf("------end testClearModuleInfoIllegal------\n"); } -- GitLab