Commit b228c178 authored by Steven Murray's avatar Steven Murray
Browse files

MountCmdMain and DismountCmdMain now call ShutdownProtobufLibrary()

parent adafff00
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment