X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keydctl.c;h=5a2ac212b96be129cab52b173b48d8737e26757a;hb=8d910718e5f13444b2948396564a809b2307f0cf;hp=11e5e8f3ae4fdfe0aaba40a8f20afab618a31cc5;hpb=4c00c60025f3da30824b2df0fb5f25c0207245e3;p=onak.git diff --git a/keydctl.c b/keydctl.c index 11e5e8f..5a2ac21 100644 --- a/keydctl.c +++ b/keydctl.c @@ -220,6 +220,7 @@ int main(int argc, char *argv[]) configfile = NULL; if ((argc - optind) < 1) { + cleanupconfig(); usage(); } else if (!strcmp("check", argv[optind])) { /* Just do the connect and close quietly */ @@ -235,9 +236,11 @@ int main(int argc, char *argv[]) keyd_do_command(KEYD_CMD_QUIT, NULL, 0); keyd_close(); } else { + cleanupconfig(); usage(); } + cleanupconfig(); exit(EXIT_SUCCESS); }