cppcheck: call va_end in _internal_error

fix for:
    util/error_util.c:38: error: va_list 'va_args' was opened but not
    closed by va_end()

This makes the code more copy-pastable, if nothing else
This commit is contained in:
David Bremner 2017-08-26 11:41:39 -03:00
parent c960bb4686
commit 10071f8b50

View file

@ -34,6 +34,7 @@ _internal_error (const char *format, ...)
fprintf (stderr, "Internal error: ");
vfprintf (stderr, format, va_args);
va_end (va_args);
exit (1);
}