avcodec/exr: fix null pointer dereference
Fixes CID1108582 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d0812f91c8
commit
80b1e1c03d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user