summaryrefslogtreecommitdiff
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index baf6c31ce5..b1148219b5 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -692,8 +692,8 @@ static av_cold int alac_decode_close(AVCodecContext *avctx)
int chan;
for (chan = 0; chan < MAX_CHANNELS; chan++) {
- av_free(alac->predicterror_buffer[chan]);
- av_free(alac->outputsamples_buffer[chan]);
+ av_freep(&alac->predicterror_buffer[chan]);
+ av_freep(&alac->outputsamples_buffer[chan]);
av_freep(&alac->wasted_bits_buffer[chan]);
}