Kaydet (Commit) 47999a43 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: va_list 'args' was opened but not closed by va_end()

Change-Id: Id7602dd19ac142dbe2680ddf7eab308a087e971a
üst fb147369
......@@ -76,6 +76,7 @@ static void syslog( int priority, const char * message, ...)
buffer = malloc( len * sizeof(char) );
if ( buffer ) { vsprintf( buffer, message, args ); OutputDebugString( buffer ); free( buffer ); }
WSASetLastError( err );
va_end(args);
}
#else
......
......@@ -80,6 +80,7 @@ inline void OutputDebugStringFormat( LPCSTR pFormat, ... )
va_start( args, pFormat );
StringCchVPrintfA( buffer, sizeof(buffer), pFormat, args );
OutputDebugStringA( buffer );
va_end(args);
}
#else
static inline void OutputDebugStringFormat( LPCSTR, ... )
......
......@@ -54,6 +54,7 @@ inline void OutputDebugStringFormat( LPCSTR pFormat, ... )
va_start( args, pFormat );
StringCchVPrintfA( buffer, sizeof(buffer), pFormat, args );
OutputDebugStringA( buffer );
va_end(args);
}
#else
static inline void OutputDebugStringFormat( LPCSTR, ... )
......
......@@ -55,6 +55,7 @@ inline void OutputDebugStringFormat( LPCSTR pFormat, ... )
va_start( args, pFormat );
StringCchVPrintfA( buffer, sizeof(buffer), pFormat, args );
OutputDebugStringA( buffer );
va_end(args);
}
#else
static inline void OutputDebugStringFormat( LPCSTR, ... )
......
......@@ -64,6 +64,7 @@ inline void OutputDebugStringFormat( LPCTSTR pFormat, ... )
va_start( args, pFormat );
StringCchVPrintf( buffer, sizeof(buffer), pFormat, args );
OutputDebugString( buffer );
va_end(args);
}
#else
static inline void OutputDebugStringFormat( LPCTSTR, ... )
......
......@@ -44,6 +44,7 @@ inline void OutputDebugStringFormat( LPCTSTR pFormat, ... )
va_start( args, pFormat );
StringCchVPrintf( buffer, sizeof(buffer), pFormat, args );
OutputDebugString( buffer );
va_end(args);
}
#else
static inline void OutputDebugStringFormat( LPCTSTR, ... )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment