This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avcodec/exr: use av_freep() for saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer
11 years ago
parent
9595f36700
commit
879072018f
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
libavcodec/exr.c
+ 2
- 2
libavcodec/exr.c
View File
@@ -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_free
p
(
&
td->bitmap);
av_free
p
(
&
td->lut);
return AVERROR(ENOMEM);
}
Write
Preview
Loading…
Cancel
Save