XQuartz: Fix a possible minor memory leak

(cherry picked from commit 24e640e1fa)
This commit is contained in:
Jeremy Huddleston 2009-10-02 19:20:24 -07:00
parent 31c6fc7673
commit 75e52c777c
1 changed files with 1 additions and 0 deletions

View File

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