]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Add missing va_end() to xasprintf() in grub-emu.
authorPete Batard <pete@akeo.ie>
Sat, 13 Aug 2016 08:51:34 +0000 (10:51 +0200)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 13 Aug 2016 13:36:01 +0000 (16:36 +0300)
grub-core/kern/emu/misc.c

index d361feb00c64f315fbf172905f7db9cabb1658f6..76661337f107ba6aff7bad29b68fee241825eba4 100644 (file)
@@ -127,6 +127,7 @@ xasprintf (const char *fmt, ...)
   
   va_start (ap, fmt);
   result = grub_xvasprintf (fmt, ap);
+  va_end (ap);
   if (!result)
     grub_util_error ("%s", _("out of memory"));