raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1617659255f9208c47b0be5ae36f7c6b689ab6d4

commit 1617659255f9208c47b0be5ae36f7c6b689ab6d4
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Apr 19 00:02:21 2020 +0100

    polkit - fix error case leak
    
    error path leak found by coverity
    
    fix CID 1425216
---
 src/modules/polkit/polkit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/polkit/polkit.c b/src/modules/polkit/polkit.c
index d29b8547e..b80c510ec 100644
--- a/src/modules/polkit/polkit.c
+++ b/src/modules/polkit/polkit.c
@@ -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);
 }
 

-- 


Reply via email to