Skip to content
Snippets Groups Projects
Commit e7f9ce18 authored by Steven Murray's avatar Steven Murray
Browse files

MountCmdMain and DismountCmdMain now call ShutdownProtobufLibrary()

parent c6a0f4f2
Branches
Tags
No related merge requests found
......@@ -64,7 +64,9 @@ int main(const int argc, char *const *const argv) {
std::string errorMessage;
try {
return exceptionThrowingMain(argc, argv);
const int rc = exceptionThrowingMain(argc, argv);
google::protobuf::ShutdownProtobufLibrary();
return rc;
} catch(castor::exception::Exception &ex) {
errorMessage = ex.getMessage().str();
} catch(std::exception &se) {
......@@ -77,6 +79,7 @@ int main(const int argc, char *const *const argv) {
// and errorMessage has been set accordingly
std::cerr << "Aborting: " << errorMessage << std::endl;
google::protobuf::ShutdownProtobufLibrary();
return 1;
}
......
......@@ -63,7 +63,9 @@ int main(const int argc, char *const *const argv) {
std::string errorMessage;
try {
return exceptionThrowingMain(argc, argv);
const int rc = exceptionThrowingMain(argc, argv);
google::protobuf::ShutdownProtobufLibrary();
return rc;
} catch(castor::exception::Exception &ex) {
errorMessage = ex.getMessage().str();
} catch(std::exception &se) {
......@@ -76,6 +78,7 @@ int main(const int argc, char *const *const argv) {
// and errorMessage has been set accordingly
std::cerr << "Aborting: " << errorMessage << std::endl;
google::protobuf::ShutdownProtobufLibrary();
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment