libavfilter/dnn_interface.c: fix av_freep dnn_module.
authorSergey Lavrushkin <dualfal@gmail.com>
Thu, 7 Jun 2018 15:22:22 +0000 (18:22 +0300)
committerPedro Arthur <bygrandao@gmail.com>
Fri, 8 Jun 2018 13:26:08 +0000 (10:26 -0300)
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
libavfilter/dnn_interface.c

index ce64fe5..87c9052 100644 (file)
@@ -51,7 +51,7 @@ DNNModule* ff_get_dnn_module(DNNBackendType backend_type)
         dnn_module->execute_model = &ff_dnn_execute_model_tf;
         dnn_module->free_model = &ff_dnn_free_model_tf;
     #else
-        av_freep(dnn_module);
+        av_freep(&dnn_module);
         return NULL;
     #endif
     }