aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGianni Tedesco <gianni.tedesco@citrix.com>2010-09-10 18:49:49 +0100
committerGianni Tedesco <gianni.tedesco@citrix.com>2010-09-10 18:49:49 +0100
commitd074f7ebc98194fafd9218ca962d23bf50a76286 (patch)
treed553c5c0b30f4fa8ba9ceaf4037fdd3d0ba87768 /tools
parentb050781292056a3a1b5d05ddf28a5e71d8ee408d (diff)
downloadxen-d074f7ebc98194fafd9218ca962d23bf50a76286.tar.gz
xen-d074f7ebc98194fafd9218ca962d23bf50a76286.tar.bz2
xen-d074f7ebc98194fafd9218ca962d23bf50a76286.zip
xl: don't leak a lot of memory in forked process in domain_create
A goto statement skips over freeing data structures for no good reason. It's not a real issue since the next step is to exit() but this cleans up output of valgrind so that other leaks and errors can be spotted. Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/xl_cmdimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index d92e288ede..3cd310e09e 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -1511,7 +1511,7 @@ start:
goto error_out;
}
ret = domid;
- goto waitpid_out;
+ goto out;
}
rc = libxl_ctx_postfork(&ctx);