elput: Fix resource leak

Coverty reports that we leak 'reply' here if we fall into the error
condition.

CID1367506

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-12-19 09:49:36 -05:00
parent fe27a8d440
commit d0a6263519
1 changed files with 1 additions and 0 deletions

View File

@ -393,6 +393,7 @@ _logind_device_take(Elput_Manager *em, uint32_t major, uint32_t minor)
if (eldbus_message_error_get(reply, &errname, &errmsg))
{
ERR("Eldbus Message Error: %s %s", errname, errmsg);
eldbus_message_unref(reply);
return -1;
}