mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-18 17:54:39 -04:00
fix memory leak
Signed-off-by: 18242988924 <zhangxinyu74@huawei.com> Change-Id: I07727f2c71e3a5d955509a1a0eb35db9ad8859f7
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user