Re: [libvirt] PATCH: 11/25: Public APIs for incrementing refcount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]