Version 2 of the patch, integrating Jim Meyering's feedback, and
tested by me locally.
I also ran it under valgrind. Obviously there's some leaked memory,
which is to be expected because we intentionally don't free up some
allocations. But there are no other memory problems (eg. use after
free, out of bounds etc).
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/