summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-10-02 19:20:24 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-10-02 19:22:43 -0700
commit9e7603fae9c8c97f8fe4616dd4899a4e09404c20 (patch)
tree1e80c654b133f3d97ae0c95ba49f4d23c60551e7
parent3fc87c3b1054c5ec4811cd1a99c79eddd2ef6f34 (diff)
XQuartz: Fix a possible minor memory leak
(cherry picked from commit 24e640e1fa6cfb3917ba90dcdabf1fadddff20aa)
-rw-r--r--hw/xquartz/mach-startup/bundle-main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xquartz/mach-startup/bundle-main.c b/hw/xquartz/mach-startup/bundle-main.c
index 691b5555e..640a91f23 100644
--- a/hw/xquartz/mach-startup/bundle-main.c
+++ b/hw/xquartz/mach-startup/bundle-main.c
@@ -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;
}