Module: wine Branch: master Commit: 04380452d0800065d40f079f5e5964b47740115d URL: http://source.winehq.org/git/wine.git/?a=commit;h=04380452d0800065d40f079f5e...
Author: Michael Stefaniuc mstefani@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; } }