1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/curves: fix resource leaks.

Fixes CID1206650
This commit is contained in:
Clément Bœsch 2014-04-27 11:49:13 +02:00
parent b432960528
commit b2cfd1fde7

View File

@ -331,8 +331,10 @@ static int parse_psfile(AVFilterContext *ctx, const char *fname)
return ret; return ret;
#define READ16(dst) do { \ #define READ16(dst) do { \
if (size < 2) \ if (size < 2) { \
return AVERROR_INVALIDDATA; \ ret = AVERROR_INVALIDDATA; \
goto end; \
} \
dst = AV_RB16(buf); \ dst = AV_RB16(buf); \
buf += 2; \ buf += 2; \
size -= 2; \ size -= 2; \