#include <dpl/singleton.h>
#include <protocols.h>
#include <security-manager.h>
+#include <utils.h>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
LogDebug("Install command.");
if (security_manager_app_inst_req_new(&req) != SECURITY_MANAGER_SUCCESS)
return EXIT_FAILURE;
+ auto req_ptr = makeUnique(req, security_manager_app_inst_req_free);
parseInstallOptions(argc, argv, *req, vm);
return installApp(*req);
} else if (vm.count("manage-users")) {
LogDebug("Manage users command.");
if (security_manager_user_req_new(&req) != SECURITY_MANAGER_SUCCESS)
return EXIT_FAILURE;
+ auto req_ptr = makeUnique(req, security_manager_user_req_free);
+
parseUserOptions(argc, argv, *req, vm);
return manageUserOperation(*req, operation);
} else {