Fixes va_list 'arg' was opened but not closed by va_end(). (CWE-664)
mentioned in merge request !685 (merged)