ia64/xen-unstable

changeset 10967:5980fb28b050

[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@intel.com>
author chris@kneesaa.uk.xensource.com
date Fri Aug 04 10:56:53 2006 +0100 (2006-08-04)
parents 36cf965711f6
children 1cbf49c018cb
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Fri Aug 04 10:53:11 2006 +0100
     1.2 +++ b/tools/ioemu/vl.c	Fri Aug 04 10:56:53 2006 +0100
     1.3 @@ -5820,6 +5820,8 @@ int main(int argc, char **argv)
     1.4      fprintf(logfile, "shared page at pfn:%lx, mfn: %"PRIx64"\n", nr_pages - 1,
     1.5              (uint64_t)(page_array[nr_pages - 1]));
     1.6  
     1.7 +    free(page_array);
     1.8 +
     1.9  #elif defined(__ia64__)
    1.10    
    1.11      if (xc_ia64_get_pfn_list(xc_handle, domid, page_array,