Commit fa8656f8 authored by Jesse Allen's avatar Jesse Allen Committed by Alexandre Julliard

msvcrt: Free correct buffer in pf_vsnprintf.

parent f3c6114d
...@@ -667,7 +667,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist ) ...@@ -667,7 +667,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
r = pf_output_format_A( out, x, -1, &flags ); r = pf_output_format_A( out, x, -1, &flags );
if( x != number ) if( x != number )
HeapFree( GetProcessHeap(), 0, number ); HeapFree( GetProcessHeap(), 0, x );
} }
/* deal with integers and floats using libc's printf */ /* deal with integers and floats using libc's printf */
...@@ -687,7 +687,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist ) ...@@ -687,7 +687,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
r = pf_output_stringA( out, x, -1 ); r = pf_output_stringA( out, x, -1 );
if( x != number ) if( x != number )
HeapFree( GetProcessHeap(), 0, number ); HeapFree( GetProcessHeap(), 0, x );
} }
else else
continue; continue;
......
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