Fix invalid read 17/196217/1
authorSeungyoun Ju <sy39.ju@samsung.com>
Fri, 14 Dec 2018 06:32:25 +0000 (15:32 +0900)
committerSeungyoun Ju <sy39.ju@samsung.com>
Wed, 26 Dec 2018 09:12:36 +0000 (18:12 +0900)
commit4d367e6334d0d1b3e99dd5a8bb854a93d1c3b7b8
treed923cb8db50468e808c8cd67db91ae2b4bf1a84b
parent06d4aa79af7c22e9d4427e138db5ce9734c6e21f
Fix invalid read

[Problem] There is invalid read report from valgrind
[Cause & Measure] The node was accessed after it was freed. This patch
 frees current node after moving to the next node so that invalid read
 issue has been resolved.

Change-Id: I15eae8c16c8f215aee30fd33ac8f3aadea73b4eb
bt-api/bt-gatt-service.c