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>
Fri, 14 Oct 2016 05:30:36 +0000 (05:30 +0000)
commit83686147c63f53acb6e2f88665a9e72d9058dba2
treecf358da8aca31c643822259cfc8b311fc33c3531
parent5ea98fab3650521bef841ddc950442575768d7e3
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>
(cherry picked from commit bae888047c3313e742f2b56cbab3366b118762e4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13259
service/notification/src/consumer/NSConsumerCommunication.c
service/notification/src/consumer/NSThread.c