From 6fc599e334cead9cbd014f7830753bc28ee5868b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 30 Apr 2024 09:25:35 -0400 Subject: [PATCH] gatt-database: Fix not calling pending_op_free acquire_write_reply needs to call pending_op_free once done with the op since it not called automatically as it is not passed as destroy function to g_dbus_proxy_method_call. --- src/gatt-database.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gatt-database.c b/src/gatt-database.c index 567c8d5c1..5823aebcb 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -2723,6 +2723,7 @@ static void acquire_write_reply(DBusMessage *message, void *user_data) if (ecode != BT_ATT_ERROR_UNLIKELY) { gatt_db_attribute_write_result(op->attrib, op->id, ecode); + pending_op_free(op); return; } -- 2.47.3