summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-02-04 23:42:54 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-02-04 23:42:54 +0000
commite7a3bf12815ca71b0f6d24a004dbc917bc63dc84 (patch)
tree8802b9793a4b657639cfff19ae46cd9f20f5a252 /usr.bin/tmux
parentae3cbb56a30d50e7a30c4f928affeb18d0b22f30 (diff)
Missing va_end, from Anton Lindqvist.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/log.c b/usr.bin/tmux/log.c
index 294d861994e..7f153a7b96c 100644
--- a/usr.bin/tmux/log.c
+++ b/usr.bin/tmux/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.23 2016/01/19 15:59:12 nicm Exp $ */
+/* $OpenBSD: log.c,v 1.24 2017/02/04 23:42:53 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);
}