Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/gnu-efi/dist/lib PR/50561: David Binderman:...



details:   https://anonhg.NetBSD.org/src/rev/8fe61b4c6302
branches:  trunk
changeset: 342296:8fe61b4c6302
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 15 12:36:10 2015 +0000

description:
PR/50561: David Binderman: Add missing va_end calls.

diffstat:

 sys/external/bsd/gnu-efi/dist/lib/hand.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (51 lines):

diff -r 828ecedc8830 -r 8fe61b4c6302 sys/external/bsd/gnu-efi/dist/lib/hand.c
--- a/sys/external/bsd/gnu-efi/dist/lib/hand.c  Tue Dec 15 12:33:03 2015 +0000
+++ b/sys/external/bsd/gnu-efi/dist/lib/hand.c  Tue Dec 15 12:36:10 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hand.c,v 1.1.1.1 2014/04/01 16:16:07 jakllsch Exp $    */
+/*     $NetBSD: hand.c,v 1.2 2015/12/15 12:36:10 christos Exp $        */
 
 /*++
 
@@ -488,6 +488,8 @@
         Index += 1;
     }
 
+    va_end (args);
+
     //
     // If there was an error, remove all the interfaces that were
     // installed without any errors
@@ -503,6 +505,7 @@
 
             Index -= 1;
         }        
+       va_end (args);
 
         *Handle = OldHandle;
     }
@@ -551,6 +554,7 @@
             DEBUG((D_ERROR, "LibUninstallProtocolInterfaces: failed %g, %r\n", Protocol, Handle));
         }
     }
+    va_end (args);
 }    
 
 
@@ -607,6 +611,8 @@
         Index += 1;
     }
 
+    va_end (args);
+
     //
     // If there was an error, undo all the interfaces that were
     // reinstalled without any errors
@@ -624,6 +630,7 @@
 
             Index -= 1;
         }        
+       va_end (args);
     }
 
     //



Home | Main Index | Thread Index | Old Index