oleaut32: Free the correct pointer on error in TLB_AllocAndInitVarDesc.

This commit is contained in:
Rob Shearman 2009-11-29 10:54:42 +00:00 committed by Alexandre Julliard
parent cd453f453f
commit 4f73fe3a09
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}