From d0a626351946cc7eee7c0c9da1d142e763097153 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 19 Dec 2016 09:49:36 -0500 Subject: [PATCH] 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 --- src/lib/elput/elput_logind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c index 18453a6..cf5c631 100644 --- a/src/lib/elput/elput_logind.c +++ b/src/lib/elput/elput_logind.c @@ -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; } -- 2.7.4