diff options
author | nicm <nicm> | 2017-02-04 23:42:53 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-02-04 23:42:53 +0000 |
commit | d091253a5d240fe867cf966a6d3edc0ddd028d1a (patch) | |
tree | 831b7f52bf9dfbd30f1c97bf7ad0d47ee49d3b93 /log.c | |
parent | 5e6a8177e55a8e30e0cd67c7ee3039aa22ff1c0e (diff) |
Missing va_end, from Anton Lindqvist.
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |