Skip to content

Commit d4bf0e4

Browse files
committed
Fix properly close va_list with va_end
1 parent d731556 commit d4bf0e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/message.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ static void do_warn(bool enabled, const QCString &file, int line, const char *pr
157157
vsnprintf(text.rawData()+l, bufSize-l, fmt, argsCopy);
158158
text[bufSize-1]='\0';
159159
format_warn(file,line,text);
160+
161+
va_end(argsCopy);
160162
}
161163

162164
void warn(const QCString &file,int line,const char *fmt, ...)

0 commit comments

Comments
 (0)