lavfi/dnn_backend_openvino.c: Fix Memory Leak in execute_model_ov
authorShubhanshu Saxena <shubhanshu.e01@gmail.com>
Sun, 11 Jul 2021 16:15:01 +0000 (21:45 +0530)
committerGuo Yejun <yejun.guo@intel.com>
Thu, 22 Jul 2021 00:13:14 +0000 (08:13 +0800)
commit429954822cd8a74f3ab73f4abe870cf8ef53389b
treeaaf2bf7d3451843be5bd5c62113a0d78d72f22d9
parentc866a099b297203306165be3c444d481fcb22553
lavfi/dnn_backend_openvino.c: Fix Memory Leak in execute_model_ov

In cases where the execution inside the function execute_model_ov fails,
the OVRequestItem must be pushed 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