lavfi/dnn_backend_openvino.c: Fix Memory Leak in execute_model_ov
authorShubhanshu Saxena <shubhanshu.e01@gmail.com>
Fri, 18 Jun 2021 16:23:08 +0000 (21:53 +0530)
committerGuo Yejun <yejun.guo@intel.com>
Sun, 4 Jul 2021 10:56:17 +0000 (18:56 +0800)
commitf73943d514802ecc521b92ebf2d1595526968fd5
tree9449cf37764569f525362ab1c9a7f3bb64bb3d9a
parent301d275301d72387732ccdc526babaf984ddafe5
lavfi/dnn_backend_openvino.c: Fix Memory Leak in execute_model_ov

In cases where the execution inside the function execute_model_ov fails,
push the RequestItem back to the request_queue before returning the error.
In case pushing back fails, release the allocated memory.

Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
libavfilter/dnn/dnn_backend_openvino.c