Fix bugs for result of static analizer.
authorKIM JungYong <jyong2.kim@samsung.com>
Thu, 13 Oct 2016 02:44:38 +0000 (11:44 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 13 Oct 2016 09:25:01 +0000 (09:25 +0000)
commitbae888047c3313e742f2b56cbab3366b118762e4
tree023a9aa8a46758a579feccec1a10ef3cb63e0956
parentf139f9337d18d73aacc7c45fb87017758fefb83b
Fix bugs for result of static analizer.

1. Initializatioin of local variable is added.
2. Invalid memory double free is removed on error handling.

Change-Id: I2d4c8460dd1e81ef88f6119f79deeae09c7f01c8
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13201
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/src/consumer/NSConsumerCommunication.c
service/notification/src/consumer/NSThread.c