Commit 3e24a277 authored by Zhao Zhili's avatar Zhao Zhili Committed by Guo Yejun

avfilter/dnn_filter_common: fix memleak

Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent c1b6235d
......@@ -159,4 +159,10 @@ void ff_dnn_uninit(DnnContext *ctx)
if (ctx->dnn_module) {
(ctx->dnn_module->free_model)(&ctx->model);
}
if (ctx->model_outputnames) {
for (int i = 0; i < ctx->nb_outputs; i++)
av_free(ctx->model_outputnames[i]);
av_freep(&ctx->model_outputnames);
}
}
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