diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2013-06-21 17:36:26 +0100 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-06-24 14:11:01 +0100 |
commit | 6809b4859f186d74a0eed31fba1d90c7f32e1a69 (patch) | |
tree | 5ee8291bda5a2606bd2b667bf69a6ed3f58bcb86 /tools | |
parent | c74c1f906a04e110dea7c0b4156ec74b43a3951c (diff) | |
download | xen-6809b4859f186d74a0eed31fba1d90c7f32e1a69.tar.gz xen-6809b4859f186d74a0eed31fba1d90c7f32e1a69.tar.bz2 xen-6809b4859f186d74a0eed31fba1d90c7f32e1a69.zip |
tools/libxc: Fix memory leaks in xc_domain_restore()
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com> (re 4.3 release)
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxc/xc_domain_restore.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_restore.c index f53ff88237..63d36cd63f 100644 --- a/tools/libxc/xc_domain_restore.c +++ b/tools/libxc/xc_domain_restore.c @@ -2335,6 +2335,9 @@ int xc_domain_restore(xc_interface *xch, int io_fd, uint32_t dom, free(mmu); free(ctx->p2m); free(pfn_type); + free(region_mfn); + free(ctx->p2m_batch); + pagebuf_free(&pagebuf); tailbuf_free(&tailbuf); /* discard cache for save file */ |