Unified · Split
| @@ -194,10 +194,8 @@ static av_cold int join_init(AVFilterContext *ctx) · 193 unmodified lines | ||
| 194 | 194 | if (!pad.name) |
| 195 | 195 | return AVERROR(ENOMEM); |
| 196 | 196 | |
| 197 | − if ((ret = ff_append_inpad(ctx, &pad)) < 0) { | |
| 198 | − av_freep(&pad.name); | |
| 197 | + if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0) | |
| 199 | 198 | return ret; |
| 200 | − } | |
| 201 | 199 | } |
| 202 | 200 | |
| 203 | 201 | return 0; |
| @@ -212,10 +210,6 @@ static av_cold void join_uninit(AVFilterContext *ctx) · 8 unmodified lines | ||
| 212 | 210 | av_frame_free(&s->input_frames[i]); |
| 213 | 211 | } |
| 214 | 212 | |
| 215 | − for (i = 0; i < ctx->nb_inputs; i++) { | |
| 216 | − av_freep(&ctx->input_pads[i].name); | |
| 217 | − } | |
| 218 | − | |
| 219 | 213 | av_freep(&s->channels); |
| 220 | 214 | av_freep(&s->buffers); |
| 221 | 215 | av_freep(&s->input_frames); |