ole32: Fix a memory leak in an error path in COMPOBJ_DllList_Add.

oldstable
Rob Shearman 2009-03-07 21:54:27 +00:00 committed by Alexandre Julliard
parent efcd0bbffa
commit d974922698
1 changed files with 1 additions and 0 deletions

View File

@ -934,6 +934,7 @@ static HRESULT COMPOBJ_DllList_Add(LPCWSTR library_name, OpenDll **ret)
} }
else else
{ {
HeapFree(GetProcessHeap(), 0, entry);
hr = E_OUTOFMEMORY; hr = E_OUTOFMEMORY;
FreeLibrary(hLibrary); FreeLibrary(hLibrary);
} }