oleaut32: Fix a memory leak.
Found by Valgrind.
This commit is contained in:
parent
487dc6b639
commit
d83cf1af0f
@ -2854,6 +2854,7 @@ HRESULT WINAPI VarCmp(LPVARIANT left, LPVARIANT right, LCID lcid, DWORD flags)
|
|||||||
if (FAILED(rc))
|
if (FAILED(rc))
|
||||||
return rc;
|
return rc;
|
||||||
rc = VarBstrCmp(V_BSTR(bstrv), V_BSTR(&rv), lcid, flags);
|
rc = VarBstrCmp(V_BSTR(bstrv), V_BSTR(&rv), lcid, flags);
|
||||||
|
VariantClear(&rv);
|
||||||
} else if (V_BSTR(bstrv) && *V_BSTR(bstrv)) {
|
} else if (V_BSTR(bstrv) && *V_BSTR(bstrv)) {
|
||||||
/* Non NULL nor empty BSTR */
|
/* Non NULL nor empty BSTR */
|
||||||
/* If the BSTR is not a number the BSTR is greater */
|
/* If the BSTR is not a number the BSTR is greater */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user