History

avfilter/dnn_backend_openvino: fix input_port/output_port leaks

Zhao Zhili committed 3 years ago

Commit 791b88f1 parent 37123101 file · +4 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/dnn/dnn_backend_openvino.c+4−0
@@ -503,6 +503,10 @@ static void dnn_free_model_ov(DNNModel **model) · 502 unmodified lines
503 }503 }
504 ff_queue_destroy(ov_model->task_queue);504 ff_queue_destroy(ov_model->task_queue);
505#if HAVE_OPENVINO2505#if HAVE_OPENVINO2
506 if (ov_model->input_port)
507 ov_output_const_port_free(ov_model->input_port);
508 if (ov_model->output_port)
509 ov_output_const_port_free(ov_model->output_port);
506 if (ov_model->preprocess)510 if (ov_model->preprocess)
507 ov_preprocess_prepostprocessor_free(ov_model->preprocess);511 ov_preprocess_prepostprocessor_free(ov_model->preprocess);
508 if (ov_model->compiled_model)512 if (ov_model->compiled_model)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t