vbscript: Specify correct variable in memory allocation check (coverity).
This commit is contained in:
parent
1e7d7d0985
commit
d0d269ab7f
|
@ -314,7 +314,7 @@ static HRESULT create_sub_matches(DWORD pos, match_state_t *result, SubMatches *
|
||||||
ret->result = result;
|
ret->result = result;
|
||||||
if(result) {
|
if(result) {
|
||||||
ret->match = heap_alloc((result->match_len+1) * sizeof(WCHAR));
|
ret->match = heap_alloc((result->match_len+1) * sizeof(WCHAR));
|
||||||
if(!ret) {
|
if(!ret->match) {
|
||||||
heap_free(ret);
|
heap_free(ret);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue