Dmitry Timoshkov : ole32: Fix a memory leak.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 13 09:30:04 CDT 2015
Module: wine
Branch: master
Commit: 76f9d9334438d0d7c77981b9eaf48408c3e68761
URL: http://source.winehq.org/git/wine.git/?a=commit;h=76f9d9334438d0d7c77981b9eaf48408c3e68761
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Jul 13 14:31:45 2015 +0800
ole32: Fix a memory leak.
---
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 );
More information about the wine-cvs
mailing list