ole32: Fix a memory leak.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jul 13 01:31:45 CDT 2015
---
dlls/ole32/storage32.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 4b6f630..ce72b73 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -9183,7 +9183,10 @@ static HRESULT STREAM_ReadString( IStream *stm, LPWSTR *string )
count = 0;
r = IStream_Read( stm, str, len, &count );
if( FAILED( r ) )
+ {
+ CoTaskMemFree( str );
return r;
+ }
if( count != len )
{
CoTaskMemFree( str );
--
2.4.5
More information about the wine-patches
mailing list