oleaut32: Fix a memory leak.

Found by Valgrind.
This commit is contained in:
Huw Davies 2009-12-16 10:08:18 +00:00 committed by Alexandre Julliard
parent 487dc6b639
commit d83cf1af0f

View file

@ -2854,6 +2854,7 @@ HRESULT WINAPI VarCmp(LPVARIANT left, LPVARIANT right, LCID lcid, DWORD flags)
if (FAILED(rc))
return rc;
rc = VarBstrCmp(V_BSTR(bstrv), V_BSTR(&rv), lcid, flags);
VariantClear(&rv);
} else if (V_BSTR(bstrv) && *V_BSTR(bstrv)) {
/* Non NULL nor empty BSTR */
/* If the BSTR is not a number the BSTR is greater */