[FFmpeg-cvslog] avfilter/dnn_backend_native: fix invalid free
Zhao Zhili
git at videolan.org
Wed Sep 19 19:21:53 EEST 2018
ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Wed Sep 19 10:55:12 2018 +0800| [5dad51437916c71dbfb992443a0d45d40a963ce8] | committer: Pedro Arthur
avfilter/dnn_backend_native: fix invalid free
Signed-off-by: Pedro Arthur <bygrandao at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5dad51437916c71dbfb992443a0d45d40a963ce8
---
libavfilter/dnn_backend_native.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/dnn_backend_native.c b/libavfilter/dnn_backend_native.c
index 184fe5402a..7dd35d4630 100644
--- a/libavfilter/dnn_backend_native.c
+++ b/libavfilter/dnn_backend_native.c
@@ -343,7 +343,7 @@ void ff_dnn_free_model_native(DNNModel **model)
}
av_freep(&network->layers[layer].params);
}
- av_freep(network);
+ av_freep(&network);
av_freep(model);
}
}
More information about the ffmpeg-cvslog
mailing list