[Coverity] fix coverity issue
authorJaeyun <jy1210.jung@samsung.com>
Mon, 2 Mar 2020 04:43:25 +0000 (13:43 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 2 Mar 2020 11:25:11 +0000 (20:25 +0900)
commitaafe8d3dd00590f4c4d748a84704d5d89de724cd
treeb5c047befd4f847e077028ca9003f9a852a81737
parent475d7a59997e3696ea7a3e26219dd92d5488fb2b
[Coverity] fix coverity issue

1. init null before getting the file contents.
2. fix mem leak

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
tests/nnstreamer_filter_armnn/unittest_filter_armnn.cc
tests/nnstreamer_sink/unittest_sink.cc
tests/tizen_capi/unittest_tizen_capi.cc
tests/tizen_nnfw_runtime/unittest_tizen_nnfw_runtime_raw.cc