1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-23 04:24:35 +02:00

avcodec/exr: use av_freep() for saftey

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-04-01 05:18:26 +02:00
parent 9595f36700
commit 879072018f

View File

@ -652,8 +652,8 @@ static int piz_uncompress(EXRContext *s, const uint8_t *src, int ssize,
if (!td->lut) if (!td->lut)
td->lut = av_malloc(1 << 17); td->lut = av_malloc(1 << 17);
if (!td->bitmap || !td->lut) { if (!td->bitmap || !td->lut) {
av_free(td->bitmap); av_freep(&td->bitmap);
av_free(td->lut); av_freep(&td->lut);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }