diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-01 05:18:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-01 05:18:26 +0200 |
commit | 879072018f682012d05a400e44df29daef831f47 (patch) | |
tree | 2fd118b25b4176bc6f0f6b8433878a5ce9dfc73c /libavcodec | |
parent | 9595f36700a90fc3e32627964fa2106341aa306c (diff) | |
download | ffmpeg-879072018f682012d05a400e44df29daef831f47.tar.gz |
avcodec/exr: use av_freep() for saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/exr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 8ee266b7cc..084025a300 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -652,8 +652,8 @@ static int piz_uncompress(EXRContext *s, const uint8_t *src, int ssize, if (!td->lut) td->lut = av_malloc(1 << 17); if (!td->bitmap || !td->lut) { - av_free(td->bitmap); - av_free(td->lut); + av_freep(&td->bitmap); + av_freep(&td->lut); return AVERROR(ENOMEM); } |