[FFmpeg-devel] [PATCH 5/7] libavfilter/dnn_backend_tf.c: Fixes ff_dnn_free_model_tf.
Sergey Lavrushkin
dualfal at gmail.com
Thu Aug 2 21:52:46 EEST 2018
---
libavfilter/dnn_backend_tf.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/dnn_backend_tf.c b/libavfilter/dnn_backend_tf.c
index 7a4ad72d27..662a2a3c6e 100644
--- a/libavfilter/dnn_backend_tf.c
+++ b/libavfilter/dnn_backend_tf.c
@@ -570,7 +570,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);
}
--
2.14.1
More information about the ffmpeg-devel
mailing list