mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/exr: favor av_freep() over av_free() for saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6838e1f547
commit
d0812f91c8
@ -563,7 +563,7 @@ static int huf_uncompress(GetByteContext *gb,
|
|||||||
fail:
|
fail:
|
||||||
for (i = 0; i < HUF_DECSIZE; i++) {
|
for (i = 0; i < HUF_DECSIZE; i++) {
|
||||||
if (hdec[i].p)
|
if (hdec[i].p)
|
||||||
av_free(hdec[i].p);
|
av_freep(&hdec[i].p);
|
||||||
}
|
}
|
||||||
|
|
||||||
av_free(freq);
|
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++) {
|
for (i = 0; i < s->thread_data_size / sizeof(EXRThreadData); i++) {
|
||||||
EXRThreadData *td = &s->thread_data[i];
|
EXRThreadData *td = &s->thread_data[i];
|
||||||
av_free(td->uncompressed_data);
|
av_freep(&td->uncompressed_data);
|
||||||
av_free(td->tmp);
|
av_freep(&td->tmp);
|
||||||
av_free(td->bitmap);
|
av_freep(&td->bitmap);
|
||||||
av_free(td->lut);
|
av_freep(&td->lut);
|
||||||
}
|
}
|
||||||
|
|
||||||
av_freep(&s->thread_data);
|
av_freep(&s->thread_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user