oleaut32: Free the correct pointer on error in TLB_AllocAndInitVarDesc.
This commit is contained in:
parent
cd453f453f
commit
4f73fe3a09
|
@ -5377,7 +5377,7 @@ static HRESULT TLB_AllocAndInitVarDesc( const VARDESC *src, VARDESC **dest_ptr )
|
|||
hr = VariantCopy(dest->u.lpvarValue, src->u.lpvarValue);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
SysFreeString((BSTR)dest_ptr);
|
||||
SysFreeString((BSTR)dest);
|
||||
return hr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue