Add utilities cleanup routine.

This commit is contained in:
Ondrej Kozina
2020-04-24 13:05:21 +02:00
parent 9b49e47b13
commit 6403de2109
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);
}