Unified · Split
| @@ -553,10 +553,8 @@ static av_cold int init(AVFilterContext *ctx) · 552 unmodified lines | |||
| 553 | if (!pad.name) | 553 | if (!pad.name) |
| 554 | return AVERROR(ENOMEM); | 554 | return AVERROR(ENOMEM); |
| 555 | 555 | ||
| 556 | if ((ret = ff_append_inpad(ctx, &pad)) < 0) { | 556 | if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0) |
| 557 | av_freep(&pad.name); | ||
| 558 | return ret; | 557 | return ret; |
| 559 | } | ||
| 560 | } | 558 | } |
| 561 | 559 | ||
| 562 | s->fdsp = avpriv_float_dsp_alloc(0); | 560 | s->fdsp = avpriv_float_dsp_alloc(0); |
| @@ -589,9 +587,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 26 unmodified lines | |||
| 589 | av_freep(&s->scale_norm); | 587 | av_freep(&s->scale_norm); |
| 590 | av_freep(&s->weights); | 588 | av_freep(&s->weights); |
| 591 | av_freep(&s->fdsp); | 589 | av_freep(&s->fdsp); |
| 592 | |||
| 593 | for (i = 0; i < ctx->nb_inputs; i++) | ||
| 594 | av_freep(&ctx->input_pads[i].name); | ||
| 595 | } | 590 | } |
| 596 | 591 | ||
| 597 | static int query_formats(AVFilterContext *ctx) | 592 | static int query_formats(AVFilterContext *ctx) |