Commit 6f0c968a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msxml3/tests: Remove superfluous NULL check before free (Smatch).

parent 63bf8635
...@@ -618,7 +618,7 @@ static void test_collection_content(void) ...@@ -618,7 +618,7 @@ static void test_collection_content(void)
bstr = NULL; bstr = NULL;
/* error if index is out of range */ /* error if index is out of range */
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 3, &bstr), E_FAIL); ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 3, &bstr), E_FAIL);
if (bstr) SysFreeString(bstr); SysFreeString(bstr);
/* error if return pointer is NULL */ /* error if return pointer is NULL */
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 0, NULL), E_POINTER); ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 0, NULL), E_POINTER);
/* pointer is checked first */ /* pointer is checked first */
......
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