[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [qemu] Free page_array when it's no longer used.



# HG changeset patch
# User chris@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 5980fb28b0504359d678db6156c17f2f48ba5184
# Parent  36cf965711f625e4d1da23487e2401ea97dad503
[qemu] Free page_array when it's no longer used.
Seems no special reason for keeping page_array, free it
to avoid memroy leak in Qemu.

Signed-off-by : Zhang xiantao<xiantao.zhang@xxxxxxxxx>
---
 tools/ioemu/vl.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r 36cf965711f6 -r 5980fb28b050 tools/ioemu/vl.c
--- a/tools/ioemu/vl.c  Fri Aug 04 10:53:11 2006 +0100
+++ b/tools/ioemu/vl.c  Fri Aug 04 10:56:53 2006 +0100
@@ -5820,6 +5820,8 @@ int main(int argc, char **argv)
     fprintf(logfile, "shared page at pfn:%lx, mfn: %"PRIx64"\n", nr_pages - 1,
             (uint64_t)(page_array[nr_pages - 1]));
 
+    free(page_array);
+
 #elif defined(__ia64__)
   
     if (xc_ia64_get_pfn_list(xc_handle, domid, page_array,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.