Commit 2249565e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fix a memory leak in get_moniker_comparison_data.

parent 2c1ba188
......@@ -279,6 +279,7 @@ static HRESULT get_moniker_comparison_data(IMoniker *pMoniker, MonikerComparison
memcpy(&(*moniker_data)->abData[0], &clsid, sizeof(clsid));
memcpy(&(*moniker_data)->abData[sizeof(clsid)], pszDisplayName, (len+1)*sizeof(WCHAR));
CoTaskMemFree(pszDisplayName);
}
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment