1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

avutil/eval: check for av_malloc failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-04-01 15:45:37 +02:00
parent 61123634dd
commit c49e7924a8

View File

@ -692,6 +692,10 @@ int av_expr_parse(AVExpr **expr, const char *s,
goto end; goto end;
} }
e->var= av_mallocz(sizeof(double) *VARS); e->var= av_mallocz(sizeof(double) *VARS);
if (!e->var) {
ret = AVERROR(ENOMEM);
goto end;
}
*expr = e; *expr = e;
e = NULL; e = NULL;
end: end: