Message ID | 20210406174514.1593857-1-ibuclaw@gdcproject.org |
---|---|
State | New |
Headers | show |
Series | [committed] d: Fix missing call to va_end in getMatchError [PR99917] | expand |
diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE index a89184498c3..98c229d8254 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 57aa244b8b8..1c73f50c205 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(); }