mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
jscript: Check the correct heap return condition (Coverity).
This commit is contained in:
parent
99982f886f
commit
339ec9c4ed
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue