Browse Source

libavfilter/dnn_backend_tf.c: Fixes ff_dnn_free_model_tf.

Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
tags/n4.1
Sergey Lavrushkin Pedro Arthur 7 years ago
parent
commit
2ecf9d103a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavfilter/dnn_backend_tf.c

+ 3
- 1
libavfilter/dnn_backend_tf.c 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);
}


Loading…
Cancel
Save