avfilter/dnn_backend_native: fix invalid free
authorZhao Zhili <quinkblack@foxmail.com>
Wed, 19 Sep 2018 02:55:12 +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 184fe54..7dd35d4 100644 (file)
@@ -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);
     }
 }