msxml3: Check some dead store results (llvm/clang).
This commit is contained in:
parent
8772c5f150
commit
e5e301b7a5
|
@ -1168,6 +1168,13 @@ static void libxmlEndElementNS(
|
||||||
Prefix, SysStringLen(Prefix));
|
Prefix, SysStringLen(Prefix));
|
||||||
|
|
||||||
SysFreeString(Prefix);
|
SysFreeString(Prefix);
|
||||||
|
|
||||||
|
if(hr != S_OK)
|
||||||
|
{
|
||||||
|
format_error_message_from_id(This, hr);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1218,6 +1225,12 @@ static void libxmlCharacters(
|
||||||
Chars, SysStringLen(Chars));
|
Chars, SysStringLen(Chars));
|
||||||
SysFreeString(Chars);
|
SysFreeString(Chars);
|
||||||
|
|
||||||
|
if(hr != S_OK)
|
||||||
|
{
|
||||||
|
format_error_message_from_id(This, hr);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
This->column += end-cur+1;
|
This->column += end-cur+1;
|
||||||
|
|
||||||
if(lastEvent)
|
if(lastEvent)
|
||||||
|
@ -1772,7 +1785,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
|
||||||
|
|
||||||
hr = SAXLocator_create(This, &locator, vbInterface);
|
hr = SAXLocator_create(This, &locator, vbInterface);
|
||||||
if(FAILED(hr))
|
if(FAILED(hr))
|
||||||
return E_FAIL;
|
return hr;
|
||||||
|
|
||||||
locator->pParserCtxt = xmlCreateMemoryParserCtxt(buffer, size);
|
locator->pParserCtxt = xmlCreateMemoryParserCtxt(buffer, size);
|
||||||
if(!locator->pParserCtxt)
|
if(!locator->pParserCtxt)
|
||||||
|
@ -1797,7 +1810,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
|
||||||
}
|
}
|
||||||
|
|
||||||
ISAXLocator_Release((ISAXLocator*)&locator->lpSAXLocatorVtbl);
|
ISAXLocator_Release((ISAXLocator*)&locator->lpSAXLocatorVtbl);
|
||||||
return S_OK;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInterface)
|
static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInterface)
|
||||||
|
@ -1813,7 +1826,7 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
|
||||||
|
|
||||||
hr = SAXLocator_create(This, &locator, vbInterface);
|
hr = SAXLocator_create(This, &locator, vbInterface);
|
||||||
if(FAILED(hr))
|
if(FAILED(hr))
|
||||||
return E_FAIL;
|
return hr;
|
||||||
|
|
||||||
locator->pParserCtxt = xmlCreatePushParserCtxt(
|
locator->pParserCtxt = xmlCreatePushParserCtxt(
|
||||||
&locator->saxreader->sax, locator,
|
&locator->saxreader->sax, locator,
|
||||||
|
|
Loading…
Reference in New Issue