fix memory leak

Signed-off-by: shilei <shilei91@huawei.com>
Change-Id: Id832a6718fd16de4375b6f63f1ab9ae91afe8ddc
This commit is contained in:
shilei
2023-02-21 09:00:33 +00:00
parent a885e28b70
commit 6f93beed52
@@ -128,6 +128,9 @@ uint8_t BundleInnerFeature::InstallInnerBundle(const uint8_t funcId, IpcIo *req,
}
uint8_t svcIdentityInfoRsp = GetSvcIdentityInfo(info, &svc, reqPath, req);
if (svcIdentityInfoRsp != ERR_OK) {
AdapterFree(info->path);
AdapterFree(info->svc);
AdapterFree(info);
return svcIdentityInfoRsp;
}
Request request = {