summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_auth_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/dp_auth_util.c')
-rw-r--r--src/providers/dp_auth_util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/dp_auth_util.c b/src/providers/dp_auth_util.c
index e78884aaa..fb10ced0b 100644
--- a/src/providers/dp_auth_util.c
+++ b/src/providers/dp_auth_util.c
@@ -338,6 +338,7 @@ int dp_common_send_id(struct sbus_connection *conn, uint16_t version,
{
DBusMessage *msg;
dbus_bool_t ret;
+ int retval;
/* create the message */
msg = dbus_message_new_method_call(NULL,
@@ -361,6 +362,9 @@ int dp_common_send_id(struct sbus_connection *conn, uint16_t version,
return EIO;
}
- return sbus_conn_send(conn, msg, 30000, id_callback, NULL, NULL);
+ retval = sbus_conn_send(conn, msg, 30000, id_callback, NULL, NULL);
+
+ dbus_message_unref(msg);
+ return retval;
}