aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-19 14:48:30 (GMT)
committerChris Michael <cp.michael@samsung.com>2016-12-19 14:48:30 (GMT)
commitfe27a8d4401fbbdcbe50ffda922e55837f234b0d (patch)
tree16a632c8fa7148437357245998f628ea3f27391b
parentcoverity: add modeling file to reduce false positives. (diff)
downloadefl-fe27a8d4401fbbdcbe50ffda922e55837f234b0d.tar.gz
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>
-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 abe4a38..18453a6 100644
--- a/src/lib/elput/elput_logind.c
+++ b/src/lib/elput/elput_logind.c
@@ -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;
}