summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
authornicm <nicm>2017-02-04 23:42:53 +0000
committernicm <nicm>2017-02-04 23:42:53 +0000
commitd091253a5d240fe867cf966a6d3edc0ddd028d1a (patch)
tree831b7f52bf9dfbd30f1c97bf7ad0d47ee49d3b93 /log.c
parent5e6a8177e55a8e30e0cd67c7ee3039aa22ff1c0e (diff)
Missing va_end, from Anton Lindqvist.
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 9729a4dd..2e953620 100644
--- a/log.c
+++ b/log.c
@@ -134,6 +134,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);
}
@@ -148,5 +149,6 @@ fatalx(const char *msg, ...)
if (asprintf(&fmt, "fatal: %s", msg) == -1)
exit(1);
log_vwrite(fmt, ap);
+ va_end(ap);
exit(1);
}