elput: Remove useless call to eldbus_message_unref
authorChristopher Michael <cp.michael@samsung.com>
Tue, 23 Apr 2019 13:14:52 +0000 (09:14 -0400)
committerYeongjong Lee <yj34.lee@samsung.com>
Wed, 24 Apr 2019 05:24:47 +0000 (14:24 +0900)
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

src/lib/elput/elput_logind.c

index 40e483e..cca5ea7 100644 (file)
@@ -41,7 +41,6 @@ _logind_device_pause_complete(Elput_Manager *em, uint32_t major, uint32_t minor)
    if (!msg)
      {
         ERR("Could not create method call for proxy");
-        eldbus_message_unref(msg);
         return;
      }