]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: close hwaudit_fd unconditionally
authorJ William Piggott <elseifthen@gmx.com>
Tue, 29 Aug 2017 01:19:55 +0000 (21:19 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Sun, 3 Sep 2017 16:34:03 +0000 (12:34 -0400)
Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c

index e471fe1aef7c4635872d520b5e9576459c3ae7ee..9fb631f6fbdedb161ff7aa7736d7b124cd1f5f23 100644 (file)
@@ -1379,8 +1379,8 @@ hwclock_exit(const struct hwclock_control *ctl
                audit_log_user_message(hwaudit_fd, AUDIT_USYS_CONFIG,
                                       "op=change-system-time", NULL, NULL, NULL,
                                       status);
-               close(hwaudit_fd);
        }
+       close(hwaudit_fd);
 #endif
        exit(status);
 }