eldbus - fix leak of message in error path case

fix CID 1402657
This commit is contained in:
Carsten Haitzler 2019-08-10 22:58:07 +01:00
parent 4b8a422a6d
commit 8113eb74a0
1 changed files with 4 additions and 1 deletions

View File

@ -314,7 +314,10 @@ _ecore_drm_dbus_device_take_no_pending(uint32_t major, uint32_t minor, Eina_Bool
}
if (!eldbus_message_arguments_append(msg, "uu", major, minor))
return -1;
{
eldbus_message_unref(msg);
return -1;
}
reply = eldbus_proxy_send_and_block(proxy, msg, timeout);
if (eldbus_message_error_get(reply, &errname, &errmsg))