Commit d0d269ab authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

vbscript: Specify correct variable in memory allocation check (coverity).

parent 1e7d7d09
......@@ -314,7 +314,7 @@ static HRESULT create_sub_matches(DWORD pos, match_state_t *result, SubMatches *
ret->result = result;
if(result) {
ret->match = heap_alloc((result->match_len+1) * sizeof(WCHAR));
if(!ret) {
if(!ret->match) {
heap_free(ret);
return E_OUTOFMEMORY;
}
......
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