Commit 9ad8aff7 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

oleacc: Free the mapping on error (Coverity).

parent 2bfb3ef6
......@@ -219,8 +219,10 @@ HRESULT WINAPI ObjectFromLresult( LRESULT result, REFIID riid, WPARAM wParam, vo
return E_FAIL;
data = GlobalAlloc(GMEM_FIXED, size);
if(!data)
if(!data) {
UnmapViewOfFile(view);
return E_OUTOFMEMORY;
}
memcpy(data, view, size);
UnmapViewOfFile(view);
......
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