Unified · Split
| @@ -159,4 +159,10 @@ void ff_dnn_uninit(DnnContext *ctx) · 158 unmodified lines | ||
| 159 | 159 | if (ctx->dnn_module) { |
| 160 | 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 | } |