1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

libavfilter/dnn_backend_tf.c: Fixes ff_dnn_free_model_tf.

Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
This commit is contained in:
Sergey Lavrushkin 2018-07-31 18:40:24 +03:00 committed by Pedro Arthur
parent 72d9b8f4c5
commit 2ecf9d103a

View File

@ -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);
}