Add utilities cleanup routine.

This commit is contained in:
Ondrej Kozina
2020-04-24 13:05:21 +02:00
committed by Milan Broz
parent 74c943c352
commit 4a43a2773a
6 changed files with 20 additions and 0 deletions

View File

@@ -238,6 +238,7 @@ __attribute__ ((noreturn)) void usage(poptContext popt_context,
poptPrintUsage(popt_context, stderr, 0);
if (error)
log_err("%s: %s", more, error);
tools_cleanup();
poptFreeContext(popt_context);
exit(exitcode);
}