Missing va_end, from Anton Lindqvist.

pull/761/head
nicm 2017-02-04 23:42:53 +00:00
parent 5e6a8177e5
commit d091253a5d
1 changed files with 2 additions and 0 deletions

2
log.c
View File

@ -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);
}