projects
/
platform
/
core
/
appfw
/
pkgmgr-info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove the possibility of incorrect memory access
[platform/core/appfw/pkgmgr-info.git]
/
src
/
server
/
database
/
db_handle_provider.cc
diff --git
a/src/server/database/db_handle_provider.cc
b/src/server/database/db_handle_provider.cc
index
a6b49f1
..
5576c67
100644
(file)
--- a/
src/server/database/db_handle_provider.cc
+++ b/
src/server/database/db_handle_provider.cc
@@
-518,7
+518,9
@@
void DBHandleProvider::UpdateCrashedWriterPackageInfo(
pending_app_.erase(app_it);
}
- AddPackage(std::move(it->second.second));
+ if (it->second.second)
+ AddPackage(std::move(it->second.second));
+
EraseWriterPID(it->second.first);
it = pending_pkg_.erase(it);
}