summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-04-23 09:14:52 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-23 09:14:52 -0400
commit6e48257b790b29ccf488927ca41ade6887e9ff1e (patch)
treea593e8103a38cc1a2785731765b5fbb38e50d5b5 /src/lib/elput
parent281e90cda5748eed38bd7629ba80bbd1f89ffc28 (diff)
elput: Remove useless call to eldbus_message_unref
If we are returning here due to a failure to create the eldbus message, then there is no point in trying to free it as it is already null. @fix
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_logind.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c
index 40e483ebe5..cca5ea7eb7 100644
--- a/src/lib/elput/elput_logind.c
+++ b/src/lib/elput/elput_logind.c
@@ -41,7 +41,6 @@ _logind_device_pause_complete(Elput_Manager *em, uint32_t major, uint32_t minor)
41 if (!msg) 41 if (!msg)
42 { 42 {
43 ERR("Could not create method call for proxy"); 43 ERR("Could not create method call for proxy");
44 eldbus_message_unref(msg);
45 return; 44 return;
46 } 45 }
47 46