[libvirt] [PATCH 5/5] qemuGetDHCPInterfaces: Don't leak @network
Daniel P. Berrange
berrange at redhat.com
Tue Mar 17 17:20:45 UTC 2015
On Tue, Mar 17, 2015 at 05:52:57PM +0100, Michal Privoznik wrote:
> The function needs a pointer to the network to get list of DHCP
> leases. The pointer is obtained via virNetworkLookupByName() which
> requires callers to free the returned network once no longer needed.
> Otherwise it's leaked.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/qemu/qemu_driver.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
ACK
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list