shell32: Fix a mem leak on an error path. Found by Smatch.
This commit is contained in:
parent
17dc17487d
commit
04380452d0
|
@ -684,6 +684,7 @@ static HRESULT WINAPI ISF_MyComputer_fnGetDisplayNameOf (IShellFolder2 *iface,
|
||||||
{
|
{
|
||||||
/* Neither a shell namespace extension nor a drive letter. */
|
/* Neither a shell namespace extension nor a drive letter. */
|
||||||
ERR("Wrong pidl type\n");
|
ERR("Wrong pidl type\n");
|
||||||
|
CoTaskMemFree(pszPath);
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue