Commit 80b1e1c0 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/exr: fix null pointer dereference

Fixes CID1108582
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d0812f91
......@@ -562,7 +562,7 @@ static int huf_uncompress(GetByteContext *gb,
fail:
for (i = 0; i < HUF_DECSIZE; i++) {
if (hdec[i].p)
if (hdec)
av_freep(&hdec[i].p);
}
......
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