dbus: unref reply message 34/152234/1
authorpr.jung <pr.jung@samsung.com>
Mon, 25 Sep 2017 09:59:34 +0000 (18:59 +0900)
committerpr.jung <pr.jung@samsung.com>
Mon, 25 Sep 2017 09:59:34 +0000 (18:59 +0900)
Change-Id: Id47482a765be09f5994fd692e0366ae2c6ba4a7a
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/shared/dbus.c

index f9eab84..59fafde 100644 (file)
@@ -208,6 +208,8 @@ void reply_dbus_method_result(dbus_method_reply_handle_h reply_handle, DBusMessa
                return;
 
        dbus_connection_send(reply->handle->conn, reply_msg, NULL);
+       if (reply->msg)
+               dbus_message_unref(reply->msg);
        dbus_message_unref(reply_msg);
        if (reply)
                free(reply);