avutil/eval: check for av_malloc failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/128/head
Michael Niedermayer 10 years ago
parent 61123634dd
commit c49e7924a8
  1. 4
      libavutil/eval.c

@ -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:

Loading…
Cancel
Save