[Converter] Fix mem leak of the converter
authorGichan Jang <gichan2.jang@samsung.com>
Thu, 1 Apr 2021 10:08:18 +0000 (19:08 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 5 Apr 2021 06:41:05 +0000 (15:41 +0900)
commitc76cc65e4904d901fc488931979b61924f42211b
tree0abd70057441f905927940b6a7b4180331e8317c
parent043f3b46b73e17127ef5bc9e6478d477ce7c0b6e
[Converter] Fix mem leak of the converter

A memory leak occurred because the name of the tensor was not released.
Free the name of the tensor and set default name as "" instead of
"Anonymous"

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
ext/nnstreamer/extra/nnstreamer_protobuf.cc
ext/nnstreamer/tensor_converter/tensor_converter_flatbuf.cc
ext/nnstreamer/tensor_converter/tensor_converter_flexbuf.cc
ext/nnstreamer/tensor_decoder/tensordec-flatbuf.cc
gst/nnstreamer/tensor_converter/tensor_converter.c