Commit 2ecf9d10 authored by Sergey Lavrushkin's avatar Sergey Lavrushkin Committed by Pedro Arthur

libavfilter/dnn_backend_tf.c: Fixes ff_dnn_free_model_tf.

Signed-off-by: 's avatarPedro Arthur <bygrandao@gmail.com>
parent 72d9b8f4
......@@ -571,7 +571,9 @@ void ff_dnn_free_model_tf(DNNModel **model)
if (tf_model->input_tensor){
TF_DeleteTensor(tf_model->input_tensor);
}
av_freep(&tf_model->output_data->data);
if (tf_model->output_data){
av_freep(&(tf_model->output_data->data));
}
av_freep(&tf_model);
av_freep(model);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment