[C-Api] fix mem leak
authorJaeyun <jy1210.jung@samsung.com>
Fri, 26 Jun 2020 02:04:20 +0000 (11:04 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 26 Jun 2020 08:01:36 +0000 (17:01 +0900)
commit06d91520f9e585950b60d3f02c8aa24d870e8397
tree3b1a677a7385c15c2e666907cccabdb858b1cb27
parent60af0eb1a96156fe6f4a8aa496963f51e5cb806c
[C-Api] fix mem leak

1. add g_free to release the memory when appending mem block in buffer.
2. free interator in switch api.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
api/capi/src/nnstreamer-capi-pipeline.c
ext/nnstreamer/tensor_converter/tensor_converter_flatbuf.cc