OSDN Git Service

Adds null check before freeing LE services list
authorSubramanian Srinivasan <subrsrin@codeaurora.org>
Fri, 15 Jan 2016 01:45:01 +0000 (17:45 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 28 Jan 2016 15:11:05 +0000 (15:11 +0000)
commitb83028d1422a097e57b829155d42882414c7a1ee
tree2c17cbbf30fb97aeec1983588d086460bae72639
parent33bab322187874ec92f8fe2fbcf4e65c6efca989
Adds null check before freeing LE services list

Prevents the crash which happens when device is
disconnected during service discovery and the
services list is not yet properly allocated
memory and populated. This change frees up the
services list after discovery complete only when
it is not null.

Change-Id: I0ced14d2ee133a332fa2fd7c456267438813a600
bta/gatt/bta_gattc_act.c