d: Fix missing call to va_end in getMatchError [PR99917]
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 6 Apr 2021 11:12:54 +0000 (13:12 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 6 Apr 2021 17:43:31 +0000 (19:43 +0200)
Reviewed-on: https://github.com/dlang/dmd/pull/12380

gcc/d/ChangeLog:

PR d/99917
* dmd/MERGE: Merge upstream dmd d16195406.

gcc/d/dmd/MERGE
gcc/d/dmd/mtype.c

index a891844..98c229d 100644 (file)
@@ -1,4 +1,4 @@
-5cc71ff830fcfba218152360014298550be9180e
+d16195406e1795ee91f2acb8f522fcb4ec698f47
 
 The first line of this file holds the git revision number of the last
 merge done from the dlang/dmd repository.
index 57aa244..1c73f50 100644 (file)
@@ -5220,6 +5220,7 @@ static const char *getMatchError(const char *format, ...)
     va_list ap;
     va_start(ap, format);
     buf.vprintf(format, ap);
+    va_end(ap);
     return buf.extractChars();
 }