diff options
author | 2017-02-04 23:42:53 +0000 | |
---|---|---|
committer | 2017-02-04 23:42:53 +0000 | |
commit | 0222b1e426adcd8d2dab7d6a0f71e2f660efc7da (patch) | |
tree | 57a2a4423192bd1de7703d32b7f26ac51875329f | |
parent | In reality our kernel does not need to be aligned at a 256M boundary, (diff) | |
download | wireguard-openbsd-0222b1e426adcd8d2dab7d6a0f71e2f660efc7da.tar.xz wireguard-openbsd-0222b1e426adcd8d2dab7d6a0f71e2f660efc7da.zip |
Missing va_end, from Anton Lindqvist.
-rw-r--r-- | usr.bin/tmux/log.c | 4 |
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); } |