فهرست منبع

Merge /u/xypron/gnu-efi/ branch va_args into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/16/
b'Nigel Croxon 4 سال پیش
والد
کامیت
ea4c77ffc5
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      lib/hand.c

+ 3 - 0
lib/hand.c

@@ -488,6 +488,7 @@ LibInstallProtocolInterfaces (
 
         Index += 1;
     }
+    va_end (args);
 
     //
     // If there was an error, remove all the interfaces that were
@@ -506,6 +507,7 @@ LibInstallProtocolInterfaces (
         }        
 
         *Handle = OldHandle;
+        va_end (args);
     }
 
     //
@@ -552,6 +554,7 @@ LibUninstallProtocolInterfaces (
             DEBUG((D_ERROR, "LibUninstallProtocolInterfaces: failed %g, %r\n", Protocol, Handle));
         }
     }
+    va_end (args);
 }