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

This commit is contained in:
Michael Stefaniuc 2010-10-25 23:50:13 +02:00 committed by Alexandre Julliard
parent 63bf86357e
commit 6f0c968a7b
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ static void test_collection_content(void)
bstr = NULL;
/* error if index is out of range */
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 3, &bstr), E_FAIL);
if (bstr) SysFreeString(bstr);
SysFreeString(bstr);
/* error if return pointer is NULL */
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 0, NULL), E_POINTER);
/* pointer is checked first */