WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [qemu] Free page_array when it's no longe

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [qemu] Free page_array when it's no longer used.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 04 Aug 2006 12:10:18 +0000
Delivery-date: Fri, 04 Aug 2006 05:13:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [qemu] Free page_array when it's no longer used., Xen patchbot-unstable <=