[FFmpeg-cvslog] avfilter/dnn_backend_native: fix memleak

Zhao Zhili git at videolan.org
Wed Sep 19 19:21:56 EEST 2018


ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Wed Sep 19 10:55:13 2018 +0800| [cd732ac4728082967208f63a5a4fc5b91b96dee9] | committer: Pedro Arthur

avfilter/dnn_backend_native: fix memleak

Signed-off-by: Pedro Arthur <bygrandao at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd732ac4728082967208f63a5a4fc5b91b96dee9
---

 libavfilter/dnn_backend_native.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/dnn_backend_native.c b/libavfilter/dnn_backend_native.c
index 7dd35d4630..70d857f5f2 100644
--- a/libavfilter/dnn_backend_native.c
+++ b/libavfilter/dnn_backend_native.c
@@ -343,6 +343,7 @@ void ff_dnn_free_model_native(DNNModel **model)
             }
             av_freep(&network->layers[layer].params);
         }
+        av_freep(&network->layers);
         av_freep(&network);
         av_freep(model);
     }



More information about the ffmpeg-cvslog mailing list