mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
XQuartz: Fix a possible minor memory leak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user