mirror of https://git.ffmpeg.org/ffmpeg.git
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:
|
fail:
|
||||||
for (i = 0; i < HUF_DECSIZE; i++) {
|
for (i = 0; i < HUF_DECSIZE; i++) {
|
||||||
if (hdec[i].p)
|
if (hdec)
|
||||||
av_freep(&hdec[i].p);
|
av_freep(&hdec[i].p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue