summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/gatt-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index a966dd08f..cc972d661 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -2139,7 +2139,7 @@ unsigned int bt_gatt_client_write_without_response(
req->att_id = bt_att_send(client->att,
signed_write ? BT_ATT_OP_SIGNED_WRITE_CMD :
BT_ATT_OP_WRITE_CMD, pdu, sizeof(pdu),
- NULL, NULL, NULL);
+ NULL, req, request_unref);
if (!req->att_id) {
request_unref(req);
return 0;