Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-01 07:18:26 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-01 07:18:26 +0400
commit879072018f682012d05a400e44df29daef831f47 (patch)
tree2fd118b25b4176bc6f0f6b8433878a5ce9dfc73c
parent9595f36700a90fc3e32627964fa2106341aa306c (diff)
avcodec/exr: use av_freep() for saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/exr.c4
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);
}