OSDN Git Service

LE: Memory leak when caching GATT service change
authorAndre Eisenbach <andre@broadcom.com>
Tue, 23 Jul 2013 00:42:18 +0000 (17:42 -0700)
committerMatthew Xie <mattx@google.com>
Wed, 14 Aug 2013 07:06:33 +0000 (00:06 -0700)
commit0d3786ea4f86a0ad48791eea6774b88910d47f21
tree13909bb8c8f81845302c3916f375896c2280f09c
parentace8d679f68cfab4c022d00afc7e5daafc74a4fd
LE: Memory leak when caching GATT service change

When a GATT connection is disconnected, a bonded device will be added
into service change pending list. But if the device is already in the
list, a duplicate record will be added and one buffer is lost.

This change ensures that devices are only added if they are not already
in the list.

Change-Id: Ied6872b145ed28bde8044444cb6c9cbee525943d
stack/gatt/gatt_main.c