shell32: Fix a mem leak on an error path. Found by Smatch.

Michael Stefaniuc mstefani at redhat.de
Sun Nov 18 17:19:19 CST 2007


---
 dlls/shell32/shfldr_mycomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/shfldr_mycomp.c b/dlls/shell32/shfldr_mycomp.c
index ec0132b..87530a5 100644
--- a/dlls/shell32/shfldr_mycomp.c
+++ b/dlls/shell32/shfldr_mycomp.c
@@ -684,6 +684,7 @@ static HRESULT WINAPI ISF_MyComputer_fnGetDisplayNameOf (IShellFolder2 *iface,
         {
             /* Neither a shell namespace extension nor a drive letter. */
             ERR("Wrong pidl type\n");
+            CoTaskMemFree(pszPath);
             return E_INVALIDARG;
         }
     }
-- 
1.5.3.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071119/4b47cab7/attachment.pgp 


More information about the wine-patches mailing list