forked from enlightenment/efl
elm_atspi_bridge: fix memory leak
Summary: Dynamic memory is allocated by calling function 'eldbus_message_iter_container_new' and lost by returning without free. Reviewers: Hermet, woohyun, jsuya, herb Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11688
This commit is contained in:
parent
de943b82aa
commit
b79b3eea00
|
@ -1644,6 +1644,7 @@ _text_attributes_get(const Eldbus_Service_Interface *iface, const Eldbus_Message
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
eldbus_message_iter_container_close(iter, iter_array);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1706,6 +1707,7 @@ _text_default_attributes_get(const Eldbus_Service_Interface *iface, const Eldbus
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
eldbus_message_unref(ret);
|
eldbus_message_unref(ret);
|
||||||
|
eldbus_message_iter_container_close(iter, iter_array);
|
||||||
return _dbus_invalid_ref_error_new(msg);
|
return _dbus_invalid_ref_error_new(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue