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

This commit is contained in:
Michael Stefaniuc 2007-11-19 00:19:19 +01:00 committed by Alexandre Julliard
parent 17dc17487d
commit 04380452d0
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}