Unified · Split
| @@ -664,10 +664,8 @@ static av_cold int init(AVFilterContext *ctx) · 663 unmodified lines | |||
| 664 | 664 | ||
| 665 | if (!pad.name) | 665 | if (!pad.name) |
| 666 | return AVERROR(ENOMEM); | 666 | return AVERROR(ENOMEM); |
| 667 | if ((ret = ff_append_inpad(ctx, &pad)) < 0) { | 667 | if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0) |
| 668 | av_freep(&pad.name); | ||
| 669 | return ret; | 668 | return ret; |
| 670 | } | ||
| 671 | 669 | ||
| 672 | sc = &(sic->streamcontexts[i]); | 670 | sc = &(sic->streamcontexts[i]); |
| 673 | 671 | ||
| @@ -730,8 +728,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 56 unmodified lines | |||
| 730 | } | 728 | } |
| 731 | av_freep(&sic->streamcontexts); | 729 | av_freep(&sic->streamcontexts); |
| 732 | } | 730 | } |
| 733 | for (unsigned i = 0; i < ctx->nb_inputs; i++) | ||
| 734 | av_freep(&ctx->input_pads[i].name); | ||
| 735 | } | 731 | } |
| 736 | 732 | ||
| 737 | static int config_output(AVFilterLink *outlink) | 733 | static int config_output(AVFilterLink *outlink) |