Remove unnecessary free operation 87/183287/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 4 Jul 2018 06:01:40 +0000 (15:01 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 4 Jul 2018 06:01:40 +0000 (15:01 +0900)
- It will not affect at all but also unnecessary.

Change-Id: Ib710ded02c036d5937ab362b8b0addc9894683a7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkg_initdb/pkg_initdb.cc

index 615044a80c2dcf841b2896af20389a96365cb4d1..fa3a8bcb1156d00d374a97b3f3ef5bc562ee1063 100644 (file)
@@ -97,7 +97,6 @@ void RemoveOldDatabases(uid_t uid) {
 
   if (parser_db == nullptr) {
     std::cerr << "Failed to get db path, cannot remove old databases";
-    free(parser_db);
     return;
   }
   std::string journal = "-journal";