Commit b2cfd1fd authored by Clément Bœsch's avatar Clément Bœsch

avfilter/curves: fix resource leaks.

Fixes CID1206650
parent b4329605
......@@ -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; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment