avcodec/exr: fix null pointer dereference
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Oct 2013 21:28:08 +0000 (23:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Oct 2013 21:28:08 +0000 (23:28 +0200)
Fixes CID1108582

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/exr.c

index 6383302..ef4fc36 100644 (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);
     }