From: Iain Buclaw Date: Tue, 6 Apr 2021 11:12:54 +0000 (+0200) Subject: d: Fix missing call to va_end in getMatchError [PR99917] X-Git-Tag: basepoints/gcc-12~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d48f87d5c1927b1bf2009af3251fe8757e823713;p=thirdparty%2Fgcc.git d: Fix missing call to va_end in getMatchError [PR99917] Reviewed-on: https://github.com/dlang/dmd/pull/12380 gcc/d/ChangeLog: PR d/99917 * dmd/MERGE: Merge upstream dmd d16195406. --- diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE index a89184498c3e..98c229d82540 100644 --- a/gcc/d/dmd/MERGE +++ b/gcc/d/dmd/MERGE @@ -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. diff --git a/gcc/d/dmd/mtype.c b/gcc/d/dmd/mtype.c index 57aa244b8b87..1c73f50c205d 100644 --- a/gcc/d/dmd/mtype.c +++ b/gcc/d/dmd/mtype.c @@ -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(); }