summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-19 09:48:30 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-19 09:48:30 -0500
commitfe27a8d4401fbbdcbe50ffda922e55837f234b0d (patch)
tree16a632c8fa7148437357245998f628ea3f27391b /src
parent3ff5dc33e2d41e5d338ec1b604a1ecb41d82b2db (diff)
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>
Diffstat (limited to 'src')
-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 abe4a381d6..18453a6ec9 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)
233 if (eldbus_message_error_get(reply, &errname, &errmsg)) 233 if (eldbus_message_error_get(reply, &errname, &errmsg))
234 { 234 {
235 ERR("Eldbus Message Error: %s %s", errname, errmsg); 235 ERR("Eldbus Message Error: %s %s", errname, errmsg);
236 eldbus_message_unref(reply);
236 return EINA_FALSE; 237 return EINA_FALSE;
237 } 238 }
238 239