History

avfilter/dnn_filter_common: fix memleak

Zhao Zhili committed 3 years ago

Commit 3e24a271 parent c1b62351 file · +6 −0Browse files

Unified · Split

libavfilter/dnn_filter_common.c+6−0
@@ -159,4 +159,10 @@ void ff_dnn_uninit(DnnContext *ctx) · 158 unmodified lines
159 if (ctx->dnn_module) {159 if (ctx->dnn_module) {
160 (ctx->dnn_module->free_model)(&ctx->model);160 (ctx->dnn_module->free_model)(&ctx->model);
161 }161 }
162 if (ctx->model_outputnames) {
163 for (int i = 0; i < ctx->nb_outputs; i++)
164 av_free(ctx->model_outputnames[i]);
165
166 av_freep(&ctx->model_outputnames);
167 }
162}168}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t