Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -194,10 +194,8 @@ static av_cold int join_init(AVFilterContext *ctx) · 193 unmodified lines | |||
| 194 | if (!pad.name) | 194 | if (!pad.name) |
| 195 | return AVERROR(ENOMEM); | 195 | return AVERROR(ENOMEM); |
| 196 | 196 | ||
| 197 | if ((ret = ff_append_inpad(ctx, &pad)) < 0) { | 197 | if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0) |
| 198 | av_freep(&pad.name); | ||
| 199 | return ret; | 198 | return ret; |
| 200 | } | ||
| 201 | } | 199 | } |
| 202 | 200 | ||
| 203 | return 0; | 201 | return 0; |
| @@ -212,10 +210,6 @@ static av_cold void join_uninit(AVFilterContext *ctx) · 8 unmodified lines | |||
| 212 | av_frame_free(&s->input_frames[i]); | 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 | av_freep(&s->channels); | 213 | av_freep(&s->channels); |
| 220 | av_freep(&s->buffers); | 214 | av_freep(&s->buffers); |
| 221 | av_freep(&s->input_frames); | 215 | av_freep(&s->input_frames); |