XQuartz: Fix a possible minor memory leak
(cherry picked from commit 24e640e1fa
)
This commit is contained in:
parent
31c6fc7673
commit
75e52c777c
|
@ -300,6 +300,7 @@ kern_return_t do_request_fd_handoff_socket(mach_port_t port, string_t filename)
|
|||
|
||||
handoff_data->fd = create_socket(handoff_data->filename);
|
||||
if(!handoff_data->fd) {
|
||||
free(handoff_data);
|
||||
return KERN_FAILURE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue