mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
ole32: Fix a memory leak of moniker in RunningObjectTableImpl_Register.
This commit is contained in:
parent
3bd222004e
commit
5885be4e11
@ -544,6 +544,7 @@ RunningObjectTableImpl_Register(IRunningObjectTable* iface, DWORD grfFlags,
|
||||
IMoniker_Release(pmkObjectName);
|
||||
if (hr != S_OK)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, moniker);
|
||||
rot_entry_delete(rot_entry);
|
||||
return hr;
|
||||
}
|
||||
@ -567,6 +568,7 @@ RunningObjectTableImpl_Register(IRunningObjectTable* iface, DWORD grfFlags,
|
||||
}
|
||||
break;
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, moniker);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
rot_entry_delete(rot_entry);
|
||||
|
Loading…
Reference in New Issue
Block a user