avcodec/exr: fix null pointer dereference

Fixes CID1108582

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-19 23:28:08 +02:00
parent d0812f91c8
commit 80b1e1c03d

View File

@ -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);
}