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