diff options
author | Chris Michael <cp.michael@samsung.com> | 2017-07-12 11:02:16 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2017-07-12 11:02:16 -0400 |
commit | c45da5c138dca2b9ff26143572c8aee76736a9e7 (patch) | |
tree | 06100eba7fa91146b31a9dc8c3a6b1b583db79f8 | |
parent | cd615667d56ae5c165ff61a6b56798d078999ada (diff) | |
download | efl-c45da5c138dca2b9ff26143572c8aee76736a9e7.tar.gz |
elput: Fix resource leak
Coverity CID1377539 says that we leak the eldbus reply here when we
error out, so be sure to cleanup 'reply'
Fixes CID1377539
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/elput/elput_logind.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c index e93633edc1..aa9006e5bb 100644 --- a/src/lib/elput/elput_logind.c +++ b/src/lib/elput/elput_logind.c @@ -196,7 +196,10 @@ _logind_session_object_path_get(Elput_Manager *em) goto message_fail; } if (!eldbus_message_arguments_get(reply, "o", &str)) + { + eldbus_message_unref(reply); goto message_fail; + } em->dbus.path = strdup(str); eldbus_message_unref(reply); |