Commit 339ec9c4 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

jscript: Check the correct heap return condition (Coverity).

parent 99982f88
...@@ -609,7 +609,7 @@ HRESULT create_regexp(script_ctx_t *ctx, jsstr_t *src, DWORD flags, jsdisp_t **r ...@@ -609,7 +609,7 @@ HRESULT create_regexp(script_ctx_t *ctx, jsstr_t *src, DWORD flags, jsdisp_t **r
regexp->jsregexp = regexp_new(ctx, &ctx->tmp_heap, regexp->str->str, regexp->jsregexp = regexp_new(ctx, &ctx->tmp_heap, regexp->str->str,
jsstr_length(regexp->str), flags, FALSE); jsstr_length(regexp->str), flags, FALSE);
if(FAILED(hres)) { if(!regexp->jsregexp) {
WARN("regexp_new failed\n"); WARN("regexp_new failed\n");
jsdisp_release(&regexp->dispex); jsdisp_release(&regexp->dispex);
return E_FAIL; return E_FAIL;
......
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