I think I get where my misunderstanding is now. I thought the problem
was that the server could not store the string, but your concern is
that the plugin cannot free the string after returning it to the
caller (server).
I can't really think of a better way to do it than the interning
option you presented in the initial email. Interning might also be
useful in future cases where we want to send strings to the server
from the plugin.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top