elput: Fix resource leak

Coverity reports that 'reply' is leaked here if we fall into the error
condition.

CID1367507

@fix

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

View File

@ -233,6 +233,7 @@ _logind_control_take(Elput_Manager *em)
if (eldbus_message_error_get(reply, &errname, &errmsg))
{
ERR("Eldbus Message Error: %s %s", errname, errmsg);
eldbus_message_unref(reply);
return EINA_FALSE;
}