summaryrefslogtreecommitdiffstats
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-19 23:27:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-19 23:27:36 +0200
commitd0812f91c810e0a22fcea275cf0c0f05a22a75c3 (patch)
treeba2f68ea0bc22bd8f2766528194bf6490f30e909 /libavcodec/exr.c
parent6838e1f547d46ae8bad3303d6caf6b1fb9142c8e (diff)
downloadffmpeg-streaming-d0812f91c810e0a22fcea275cf0c0f05a22a75c3.zip
ffmpeg-streaming-d0812f91c810e0a22fcea275cf0c0f05a22a75c3.tar.gz
avcodec/exr: favor av_freep() over av_free() for saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 75b5555..6383302 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -563,7 +563,7 @@ static int huf_uncompress(GetByteContext *gb,
fail:
for (i = 0; i < HUF_DECSIZE; i++) {
if (hdec[i].p)
- av_free(hdec[i].p);
+ av_freep(&hdec[i].p);
}
av_free(freq);
@@ -1256,10 +1256,10 @@ static av_cold int decode_end(AVCodecContext *avctx)
for (i = 0; i < s->thread_data_size / sizeof(EXRThreadData); i++) {
EXRThreadData *td = &s->thread_data[i];
- av_free(td->uncompressed_data);
- av_free(td->tmp);
- av_free(td->bitmap);
- av_free(td->lut);
+ av_freep(&td->uncompressed_data);
+ av_freep(&td->tmp);
+ av_freep(&td->bitmap);
+ av_freep(&td->lut);
}
av_freep(&s->thread_data);
OpenPOWER on IntegriCloud