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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-04-01 22:20:46 +02:00 committed by Alexandre Julliard
parent b442a5c0f0
commit c15bbce2e5
1 changed files with 4 additions and 4 deletions

View File

@ -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);