[ML][Single] Fix the crash issue in single API 43/264543/1
authorSangjung Woo <sangjung.woo@samsung.com>
Fri, 24 Sep 2021 07:38:09 +0000 (16:38 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Fri, 24 Sep 2021 07:38:09 +0000 (16:38 +0900)
commite162efb0434b95eabfe5be7e019caea6fc1a6ab6
tree10ba999ac07b5118db92eeed47a588da9170b078
parent103a7efb0252bf3198fbfdf35ecbd4d373b498ca
[ML][Single] Fix the crash issue in single API

Before closing the singleshot handle, the output tensor data is freed.
Since inference internally is going on, this situation could cause the
segmentation fault in sub-plugin part. This patch fixes that bug.

Change-Id: I690b4ef941e981353f3809cc56a1f2089ef2a4e5
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
src/ml/ml_singleshot.cc