summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
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);
}