summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-02-05 02:01:12 +0000
committerThomas Adam <thomas@xteddy.org>2017-02-05 02:01:12 +0000
commit7bccc82284f4240c91c46aa81eb71a9f534f6b1c (patch)
tree1a910265de11953d99cacb3eccb5323d0072babf /log.c
parente1c283325ecf6496f2107efc5c8d32257017558c (diff)
parentd091253a5d240fe867cf966a6d3edc0ddd028d1a (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/log.c b/log.c
index 589e3f9b..caf3996a 100644
--- a/log.c
+++ b/log.c
@@ -133,6 +133,7 @@ fatal(const char *msg, ...)
if (asprintf(&fmt, "fatal: %s: %s", msg, strerror(errno)) == -1)
exit(1);
log_vwrite(fmt, ap);
+ va_end(ap);
exit(1);
}
@@ -147,5 +148,6 @@ fatalx(const char *msg, ...)
if (asprintf(&fmt, "fatal: %s", msg) == -1)
exit(1);
log_vwrite(fmt, ap);
+ va_end(ap);
exit(1);
}