On Tue, Jan 20, 2009 at 11:18:40AM +0000, Daniel P. Berrange wrote:
Unfortunately this isn't sufficient to make use of the dom/net
fields practical. If we hold onto a reference when setting the
error object, then we have a possible indefinite memory leak,
unless the app calling libvirt always runs virResetLastError()
after every API call.
I don't think it really matters. The application can keep a handle on
the original dom/net objects passed into the call, if it needs them
for error reporting.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
Read my OCaml programming blog:
http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora