[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] PATCH: 11/25: Public APIs for incrementing refcount
- From: "Richard W.M. Jones" <rjones redhat com>
- To: "Daniel P. Berrange" <berrange redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] PATCH: 11/25: Public APIs for incrementing refcount
- Date: Tue, 20 Jan 2009 11:41:18 +0000
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]