GetAppInfoCommand: resolve possible memory leak
authorJongmin Lee <jm105.lee@samsung.com>
Tue, 9 Jun 2020 06:11:38 +0000 (15:11 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 11 Jun 2020 22:02:32 +0000 (07:02 +0900)
Change-Id: I86e9c8785b1e75f306669f2169e909ad7984f343

org.tizen.aurum-bootstrap/src/Commands/GetAppInfoCommand.cc

index 961fd82..b4c5ff7 100644 (file)
@@ -36,6 +36,7 @@ GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo* request,
                 mResponse->set_isinstalled(true);
             }
         }
+        package_info_destroy(package_info);
     }
 
     if (!app_manager_get_app_context(packageName.c_str(), &app_context)) {