[C-API] fix double free case
authorJaeyun <jy1210.jung@samsung.com>
Thu, 14 Jan 2021 07:43:19 +0000 (16:43 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 15 Jan 2021 07:37:06 +0000 (16:37 +0900)
commit0f0cd59d5e34e50d81e348b3b776418e8792be4c
treecb30522b293d8a1cbaf710e1519b749491211897
parentda36ae507d2d70a045688882522fbcb186172883
[C-API] fix double free case

If filter sub-plugin allocates output tensor, single-shot notifies releasing output buffer when closing the single handle.
In this case, we dont need to free the output handle itself. Calling single-close and destroy-outdata functions will make an error.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
api/capi/include/nnstreamer-single.h
api/capi/src/nnstreamer-capi-single.c