Commit cd732ac4 authored by Zhao Zhili's avatar Zhao Zhili Committed by Pedro Arthur

avfilter/dnn_backend_native: fix memleak

Signed-off-by: 's avatarPedro Arthur <bygrandao@gmail.com>
parent 5dad5143
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment