wsdapi: 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:47 +02:00 committed by Alexandre Julliard
parent c15bbce2e5
commit aae4f1142f
2 changed files with 2 additions and 3 deletions

View File

@ -215,7 +215,7 @@ BOOL send_udp_multicast_of_type(char *data, int length, int max_initial_delay, U
ret = TRUE;
cleanup:
if (adapter_addresses != NULL) heap_free(adapter_addresses);
heap_free(adapter_addresses);
return ret;
}

View File

@ -127,8 +127,7 @@ static inline void free_xml_string(WS_XML_STRING *value)
if (value == NULL)
return;
if (value->bytes != NULL)
heap_free(value->bytes);
heap_free(value->bytes);
heap_free(value);
}