1 diff -urN a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c
2 --- a/libavfilter/af_aformat.c 2019-12-02 08:48:03.060361273 -0700
3 +++ b/libavfilter/af_aformat.c 2019-12-02 08:52:25.619248884 -0700
8 +#define DEL_FIELD(p,mem,fld) if( p->mem ) { av_freep(&p->mem->fld); av_freep(&p->mem); }
10 +static av_cold void uninit(AVFilterContext *ctx)
12 + AFormatContext *s = ctx->priv;
13 + DEL_FIELD(s, formats, formats);
14 + DEL_FIELD(s, sample_rates, formats);
15 + DEL_FIELD(s, channel_layouts, channel_layouts);
18 static int query_formats(AVFilterContext *ctx)
20 AFormatContext *s = ctx->priv;
23 .description = NULL_IF_CONFIG_SMALL("Convert the input audio to one of the specified formats."),
26 .query_formats = query_formats,
27 .priv_size = sizeof(AFormatContext),
28 .priv_class = &aformat_class,