From 8b2a8c9257fb62badeed2dc76caca178737f77d6 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Mon, 26 May 2014 09:32:42 +0200 Subject: [PATCH] android/gatt: Fix possible memory leak --- android/gatt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/android/gatt.c b/android/gatt.c index f2ac48267..bc774af19 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -4478,6 +4478,7 @@ static uint8_t read_by_group_type(const uint8_t *cmd, uint16_t cmd_len, if (!queue_push_tail(device->pending_requests, entry)) { queue_remove_all(device->pending_requests, NULL, NULL, destroy_pending_request); + free(entry); queue_destroy(q, NULL); return ATT_ECODE_UNLIKELY; } -- 2.47.3