[commit: ghc] master: Add missing va_end to va_start (310b636)

git at git.haskell.org git at git.haskell.org
Wed Feb 18 15:48:08 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/310b6365c91731a797c7e592ebda9ca881f662d4/ghc

>---------------------------------------------------------------

commit 310b6365c91731a797c7e592ebda9ca881f662d4
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Tue Feb 17 08:37:49 2015 -0600

    Add missing va_end to va_start
    
    Summary: See also ab9711d8.
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D655


>---------------------------------------------------------------

310b6365c91731a797c7e592ebda9ca881f662d4
 rts/Trace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rts/Trace.c b/rts/Trace.c
index f28609b..a0783f3 100644
--- a/rts/Trace.c
+++ b/rts/Trace.c
@@ -702,6 +702,7 @@ static void traceFormatUserMsg(Capability *cap, char *msg, ...)
         }
     }
     dtraceUserMsg(cap->no, msg);
+    va_end(ap);
 }
 
 void traceUserMsg(Capability *cap, char *msg)
@@ -778,6 +779,7 @@ void traceBegin (const char *str, ...)
 
     tracePreface();
     vdebugBelch(str,ap);
+    va_end(ap);
 }
 
 void traceEnd (void)



More information about the ghc-commits mailing list