Commit 87907201 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/exr: use av_freep() for saftey

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9595f367
......@@ -652,8 +652,8 @@ static int piz_uncompress(EXRContext *s, const uint8_t *src, int ssize,
if (!td->lut)
td->lut = av_malloc(1 << 17);
if (!td->bitmap || !td->lut) {
av_free(td->bitmap);
av_free(td->lut);
av_freep(&td->bitmap);
av_freep(&td->lut);
return AVERROR(ENOMEM);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment