Change-Id: I8b26603ac401f3eaae276da8dfe7dc4e4838aca1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
LOG(WARNING) << "Failed to get privileges info";
std::string icon = GetIconInfo(parser);
if (!icon.empty()) {
- if (!ExtractPackageArchive(file_path, icon.c_str(), tmp_dir))
+ if (!ExtractPackageArchive(file_path, icon.c_str(), tmp_dir)) {
+ bf::remove_all(tmp_dir);
return false;
+ }
if (!ReadIcon(icon, tmp_dir, info)) {
LOG(WARNING) << "Failed to get icon info";
+ bf::remove_all(tmp_dir);
return false;
}
}