瀏覽代碼

lib/hand: missing va_end

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

Correct LibInstallProtocolInterfaces() and
LibUninstallProtocolInterfaces().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich Schuchardt 4 年之前
父節點
當前提交
0ec661b389
共有 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);
 }