diff --git a/appexecfwk_lite/appexecfwk_hal/src/bundle_mgr_test.c b/appexecfwk_lite/appexecfwk_hal/src/bundle_mgr_test.c index dff1b21e013beb44127432cd3b9330e932986e80..02a86ea7e754004c6a74b6107ffc0922419bb6d3 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"); }