jscript: Check the correct heap return condition (Coverity).
This commit is contained in:
parent
99982f886f
commit
339ec9c4ed
|
@ -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,
|
||||
jsstr_length(regexp->str), flags, FALSE);
|
||||
if(FAILED(hres)) {
|
||||
if(!regexp->jsregexp) {
|
||||
WARN("regexp_new failed\n");
|
||||
jsdisp_release(®exp->dispex);
|
||||
return E_FAIL;
|
||||
|
|
Loading…
Reference in New Issue