Commit 02b226f7 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

ole32: Fix memory leak on error path in composite_get_(left|right)most (Coverity).

parent 9dcd2b3c
......@@ -1627,6 +1627,7 @@ static HRESULT composite_get_rightmost(CompositeMonikerImpl *composite, IMoniker
if (!(node = moniker_tree_get_rightmost(root)))
{
WARN("Couldn't get right most component.\n");
moniker_tree_release(root);
return E_FAIL;
}
......@@ -1663,6 +1664,7 @@ static HRESULT composite_get_leftmost(CompositeMonikerImpl *composite, IMoniker
if (!(node = moniker_tree_get_leftmost(root)))
{
WARN("Couldn't get left most component.\n");
moniker_tree_release(root);
return E_FAIL;
}
......
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