summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/exr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 6383302302..ef4fc36c60 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -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);
}