Commit c15bbce2 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wsdapi/tests: Remove redundant NULL checks before heap_free().

parent b442a5c0
......@@ -260,7 +260,7 @@ static void start_listening(messageStorage *msgStorage, const char *multicastAdd
cleanup:
closesocket(s);
if (parameter != NULL) heap_free(parameter);
heap_free(parameter);
cleanup_addresses:
freeaddrinfo(multicastAddr);
......@@ -309,7 +309,7 @@ static BOOL start_listening_on_all_addresses(messageStorage *msgStorage, ULONG f
ret = TRUE;
cleanup:
if (adapterAddresses != NULL) heap_free(adapterAddresses);
heap_free(adapterAddresses);
return ret;
}
......@@ -626,8 +626,8 @@ static void Publish_tests(void)
after_publish_test:
if (publisherIdW != NULL) heap_free(publisherIdW);
if (sequenceIdW != NULL) heap_free(sequenceIdW);
heap_free(publisherIdW);
heap_free(sequenceIdW);
ref = IWSDiscoveryPublisher_Release(publisher);
ok(ref == 0, "IWSDiscoveryPublisher_Release() has %d references, should have 0\n", ref);
......
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