[FFmpeg-cvslog] avfilter/curves: fix resource leaks.
Clément Bœsch
git at videolan.org
Sun Apr 27 11:53:09 CEST 2014
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Apr 27 11:49:13 2014 +0200| [b2cfd1fde7a2643be9978ec8da58c184a5d9a140] | committer: Clément Bœsch
avfilter/curves: fix resource leaks.
Fixes CID1206650
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2cfd1fde7a2643be9978ec8da58c184a5d9a140
---
libavfilter/vf_curves.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_curves.c b/libavfilter/vf_curves.c
index 93799b0..b17c391 100644
--- a/libavfilter/vf_curves.c
+++ b/libavfilter/vf_curves.c
@@ -331,8 +331,10 @@ static int parse_psfile(AVFilterContext *ctx, const char *fname)
return ret;
#define READ16(dst) do { \
- if (size < 2) \
- return AVERROR_INVALIDDATA; \
+ if (size < 2) { \
+ ret = AVERROR_INVALIDDATA; \
+ goto end; \
+ } \
dst = AV_RB16(buf); \
buf += 2; \
size -= 2; \
More information about the ffmpeg-cvslog
mailing list