Commit e6869fe9 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

ole32: Fix memory leak on error path in CompositeMonikerImpl_CommonPrefixWith (Coverity).

parent cad94465
......@@ -751,7 +751,11 @@ static HRESULT WINAPI CompositeMonikerImpl_CommonPrefixWith(IMoniker *iface, IMo
heap_free(components);
heap_free(other_components);
if (!prefix_len) return MK_E_NOPREFIX;
if (!prefix_len)
{
heap_free(prefix_components);
return MK_E_NOPREFIX;
}
last = prefix_components[0];
for (i = 1; i < prefix_len; ++i)
......
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