diff options
author | James Almer <jamrial@gmail.com> | 2017-09-06 13:03:29 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-06 13:04:21 -0300 |
commit | f4e593f7b51f7cb30986186c187cff939c82d86d (patch) | |
tree | b05d0d9163591974afa9e4646752832a78792105 /libavcodec | |
parent | 3242babf64a249fcba07a8a885f9e9825f4ffd3c (diff) | |
download | ffmpeg-streaming-f4e593f7b51f7cb30986186c187cff939c82d86d.zip ffmpeg-streaming-f4e593f7b51f7cb30986186c187cff939c82d86d.tar.gz |
avcodec/audiotoolboxdec: use av_freep()
This prevents leaving dangling pointers.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/audiotoolboxdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 9751436..607d3ba 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @@ -570,8 +570,8 @@ static av_cold int ffat_close_decoder(AVCodecContext *avctx) AudioConverterDispose(at->converter); av_packet_unref(&at->new_in_pkt); av_packet_unref(&at->in_pkt); - av_free(at->decoded_data); - av_free(at->extradata); + av_freep(&at->decoded_data); + av_freep(&at->extradata); return 0; } |