mscoree: Avoid using pointer after free.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
This commit is contained in:
Rémi Bernon 2022-05-22 17:13:26 +02:00 committed by Alexandre Julliard
parent 910d58520a
commit b883553551

View file

@ -1917,7 +1917,7 @@ HRESULT create_monodata(REFCLSID clsid, LPVOID *ppObj)
HeapFree(GetProcessHeap(), 0, filenameA);
if (!assembly)
{
ERR("Cannot open assembly %s, status=%i\n", filenameA, status);
ERR("Cannot open assembly %s, status=%i\n", debugstr_w(filename), status);
domain_restore(prev_domain);
goto cleanup;
}