Michael Stefaniuc : shell32: Fix a mem leak on an error path. Found by Smatch.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 08:19:49 CST 2007
Module: wine
Branch: master
Commit: 04380452d0800065d40f079f5e5964b47740115d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04380452d0800065d40f079f5e5964b47740115d
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Nov 19 00:19:19 2007 +0100
shell32: Fix a mem leak on an error path. Found by Smatch.
---
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;
}
}
More information about the wine-cvs
mailing list