avfilter/dnn_backend_native: fix memleak
authorZhao Zhili <quinkblack@foxmail.com>
Wed, 19 Sep 2018 02:55:13 +0000 (10:55 +0800)
committerPedro Arthur <bygrandao@gmail.com>
Wed, 19 Sep 2018 16:21:27 +0000 (13:21 -0300)
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
libavfilter/dnn_backend_native.c

index 7dd35d4..70d857f 100644 (file)
@@ -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);
     }