diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c index 8e3535e21e..bbe2c87720 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -234,7 +234,7 @@ av_cold int ff_alsa_close(AVFormatContext *s1) { AlsaData *s = s1->priv_data; - av_freep(s->reorder_buf); + av_freep(&s->reorder_buf); snd_pcm_close(s->h); return 0; }