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:
parent
c15bbce2e5
commit
aae4f1142f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue