Commit c49e7924 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/eval: check for av_malloc failure

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 61123634
......@@ -692,6 +692,10 @@ int av_expr_parse(AVExpr **expr, const char *s,
goto end;
}
e->var= av_mallocz(sizeof(double) *VARS);
if (!e->var) {
ret = AVERROR(ENOMEM);
goto end;
}
*expr = e;
e = NULL;
end:
......
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