diff options
-rw-r--r-- | hfpd/dbus.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hfpd/dbus.cpp b/hfpd/dbus.cpp index 34dc8db..a5e515e 100644 --- a/hfpd/dbus.cpp +++ b/hfpd/dbus.cpp @@ -1757,7 +1757,8 @@ DbusPropertyGet(DBusMessage *srcp) } if (!propp->prop_get) { - return SendReplyError(msgp, + dbus_message_unref(msgp); + return SendReplyError(srcp, DBUS_ERROR_INVALID_ARGS, "Property cannot be read"); } |