Commit bfab009e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

rpcrt4: Fix use after free in get_iface_info.

parent be4b3459
...@@ -1276,18 +1276,18 @@ static HRESULT get_iface_info(ITypeInfo *typeinfo, WORD *funcs, WORD *parentfunc ...@@ -1276,18 +1276,18 @@ static HRESULT get_iface_info(ITypeInfo *typeinfo, WORD *funcs, WORD *parentfunc
if (FAILED(hr)) if (FAILED(hr))
goto err; goto err;
hr = ITypeInfo_GetRefTypeInfo(*real_typeinfo, reftype, &parentinfo); hr = ITypeInfo_GetRefTypeInfo(*real_typeinfo, reftype, &parentinfo);
if (SUCCEEDED(hr))
{
hr = ITypeInfo_GetTypeAttr(parentinfo, &typeattr);
ITypeInfo_Release(parentinfo);
}
if (FAILED(hr)) if (FAILED(hr))
goto err; goto err;
hr = ITypeInfo_GetTypeAttr(parentinfo, &typeattr);
if (SUCCEEDED(hr))
{
*parentiid = typeattr->guid; *parentiid = typeattr->guid;
ITypeInfo_ReleaseTypeAttr(parentinfo, typeattr); ITypeInfo_ReleaseTypeAttr(parentinfo, typeattr);
}
return S_OK; ITypeInfo_Release(parentinfo);
if (SUCCEEDED(hr))
return hr;
err: err:
ITypeInfo_Release(*real_typeinfo); ITypeInfo_Release(*real_typeinfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment