[FFmpeg-cvslog] avcodec/exr: use av_freep() for saftey
Michael Niedermayer
git at videolan.org
Tue Apr 1 05:50:09 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 1 05:18:26 2014 +0200| [879072018f682012d05a400e44df29daef831f47] | committer: Michael Niedermayer
avcodec/exr: use av_freep() for saftey
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=879072018f682012d05a400e44df29daef831f47
---
libavcodec/exr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 8ee266b..084025a 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);
}
More information about the ffmpeg-cvslog
mailing list