fix memory leak

Signed-off-by: 18242988924 <zhangxinyu74@huawei.com>
Change-Id: I07727f2c71e3a5d955509a1a0eb35db9ad8859f7
This commit is contained in:
18242988924
2023-08-12 07:22:49 +00:00
parent 00f9d37a23
commit 1aca5af8e1
@@ -1194,6 +1194,7 @@ int32_t GtManagerService::ReportInstallCallback(
bundleInstallMsg->smallIconPath = bundleInstallMsg_->smallIconPath;
bundleInstallMsg->bigIconPath = bundleInstallMsg_->bigIconPath;
(*installerCallback)(errCode, bundleInstallMsg);
AdapterFree(bundleInstallMsg);
return 0;
}
@@ -1211,6 +1212,7 @@ int32_t GtManagerService::ReportUninstallCallback(uint8_t errCode, uint8_t insta
bundleInstallMsg->bundleName = bundleName;
bundleInstallMsg->installProcess = process;
(*installerCallback)(errCode, bundleInstallMsg);
AdapterFree(bundleInstallMsg);
return 0;
}