summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_logind.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-19 09:49:36 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-19 09:49:36 -0500
commitd0a626351946cc7eee7c0c9da1d142e763097153 (patch)
treefbabf8c1ef1bb0a71f9dec5e7f4c1bc73bd96b38 /src/lib/elput/elput_logind.c
parentfe27a8d4401fbbdcbe50ffda922e55837f234b0d (diff)
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>
Diffstat (limited to 'src/lib/elput/elput_logind.c')
-rw-r--r--src/lib/elput/elput_logind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c
index 18453a6ec9..cf5c631b39 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)
393 if (eldbus_message_error_get(reply, &errname, &errmsg)) 393 if (eldbus_message_error_get(reply, &errname, &errmsg))
394 { 394 {
395 ERR("Eldbus Message Error: %s %s", errname, errmsg); 395 ERR("Eldbus Message Error: %s %s", errname, errmsg);
396 eldbus_message_unref(reply);
396 return -1; 397 return -1;
397 } 398 }
398 399