mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
oledb32: Avoid leak in error path on safearray conversion (Coverity).
This commit is contained in:
parent
64fb92ab38
commit
36fee7c2e5
@ -957,9 +957,11 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
|
||||
for(i =0; i < size; i++,p++)
|
||||
{
|
||||
hr = SafeArrayPutElement(psa, &i, &p);
|
||||
if(FAILED(hr))
|
||||
if(FAILED(hr)) {
|
||||
SafeArrayDestroy (psa);
|
||||
return hr;
|
||||
}
|
||||
}
|
||||
|
||||
V_VT(v) = VT_ARRAY|VT_UI1;
|
||||
V_ARRAY(v) = psa;
|
||||
|
Loading…
Reference in New Issue
Block a user