Index: compiler-rt/lib/scudo/standalone/string_utils.cpp =================================================================== --- compiler-rt/lib/scudo/standalone/string_utils.cpp +++ compiler-rt/lib/scudo/standalone/string_utils.cpp @@ -222,6 +222,7 @@ static_cast(formatString(C, sizeof(C), Format, Args)) + 1; String.resize(Length + AdditionalLength); formatString(String.data() + Length, AdditionalLength, Format, ArgsCopy); + va_end(ArgsCopy); Length = strlen(String.data()); CHECK_LT(Length, String.size()); }