Fix defects detected by static code analyzer 87/20087/7
authorJaewook Jung <jw0213.jung@samsung.com>
Fri, 19 May 2017 02:02:29 +0000 (11:02 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 22 May 2017 06:39:32 +0000 (06:39 +0000)
commit043fef01bb5552562747ca01d548499445efeb4f
treed897de79c2f7540bc760e1dd574ef927d6ec71e9
parent44ca3b621136e78201bb9bd348684f2952b42745
Fix defects detected by static code analyzer

 - fixed memory leak
 - removed unreachable codes
 - add a null checking before refer a character pointer

Change-Id: Ie49c44f0d2e5211dec24a607382c202900b4f6a3
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20087
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Glen Youngjin Kim <glen.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/bt_edr_adapter/caedradapter.c
resource/csdk/connectivity/src/caprotocolmessage.c
resource/csdk/stack/src/ocstack.c