Skip to content

Commit bfada56

Browse files
committedOct 29, 2016
Add missing va_end.
1 parent cdfa8be commit bfada56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎log.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ string LogSink::vstrprintf(const char* format, va_list va)
5050
va_copy(va_tmp, va);
5151

5252
int len = vsnprintf(NULL, 0, format, va_tmp);
53+
va_end(va_tmp);
54+
5355
if(len < 0)
5456
return "";
5557

0 commit comments

Comments
 (0)
Please sign in to comment.