polkit - fix error case leak

error path leak found by coverity

fix CID 1425216
This commit is contained in:
Carsten Haitzler 2020-04-19 00:02:21 +01:00
parent a6a10d405d
commit 1617659255
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ cb_agent_begin_authentication(const Eldbus_Service_Interface *iface EINA_UNUSED,
session_show(ps);
return NULL;
err:
if (ps) session_free(ps);
return eldbus_message_method_return_new(msg);
}