[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.2] tools/libxl: Fix memory leak in sched_domain_output()
commit 1e26756496943d9e530c22bcb5785a02ae4af9c7 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Mon Nov 25 11:16:48 2013 +0000 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Thu Jan 9 12:35:09 2014 +0000 tools/libxl: Fix memory leak in sched_domain_output() Coverity ID: 1055904 Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CC: Keir Fraser <keir@xxxxxxx> CC: Jan Beulich <JBeulich@xxxxxxxx> (cherry picked from commit 0792426b798fd3b39909d618cf8fe8bac30594f4) Conflicts: tools/libxl/xl_cmdimpl.c (cherry picked from commit 338a8b13757d6ef36ff4e321cb4ef4190ba6ec02) --- tools/libxl/xl_cmdimpl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index fe8dc92..0a576a6 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4761,6 +4761,7 @@ static int sched_domain_output(libxl_scheduler sched, int (*output)(int), poolinfo = libxl_list_cpupool(ctx, &n_pools); if (!poolinfo) { fprintf(stderr, "error getting cpupool info\n"); + libxl_dominfo_list_free(info, nb_domain); return -ERROR_NOMEM; } @@ -4782,6 +4783,7 @@ static int sched_domain_output(libxl_scheduler sched, int (*output)(int), } if (poolinfo) libxl_cpupoolinfo_list_free(poolinfo, n_pools); + libxl_dominfo_list_free(info, nb_domain); return 0; } -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.2 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |