Преглед на файлове

lib/hand: missing va_end() in LibReinstallProtocolInterfaces()

For each va_start() there must be a call to va_end().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich Schuchardt преди 3 години
родител
ревизия
70402aa91d
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      lib/hand.c

+ 3 - 1
lib/hand.c

@@ -610,6 +610,7 @@ LibReinstallProtocolInterfaces (
 
         Index += 1;
     }
+    va_end (args);
 
     //
     // If there was an error, undo all the interfaces that were
@@ -627,7 +628,8 @@ LibReinstallProtocolInterfaces (
             uefi_call_wrapper(BS->ReinstallProtocolInterface, 4, Handle, Protocol, NewInterface, OldInterface);
 
             Index -= 1;
-        }        
+        }
+        va_end (args);
     }
 
     //