[Fix] pkg_info is now destroyed properly
[Verification] TCT auto and manual 100% passrate
Change-Id: I2918fd9eeb85d1ca983f0770af6371f0a1f8a16b
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
"any other platform error occurs"));
}
} else {
+ // pkg_info was gathered in this case, need to release memory - it is not needed
+ package_info_destroy(pkg_info);
int request_id = 0;
int ret = package_manager_request_uninstall(request_, id.c_str(), &request_id);
if (ret != PACKAGE_MANAGER_ERROR_NONE) {