Re: [libvirt] PATCH: Fix leak in storage driver

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:
> A recent change to keep the storage pools active upon shutdown, exposed a
> minor flaw in the code which free's a virStoragePoolObj instance. It
> never free's the associated volumes, since it presumed you'd never free
> a pool, which was still active. A bogus assumption, causing  us to leak
> memory upon daemon shutdown, thus annoying valgrind.
>
> Daniel
>
> diff -r 3e95abd6df89 src/storage_conf.c
> --- a/src/storage_conf.c	Fri Jan 30 11:01:10 2009 +0000
> +++ b/src/storage_conf.c	Fri Jan 30 11:01:29 2009 +0000
> @@ -296,6 +296,8 @@ virStoragePoolObjFree(virStoragePoolObjP
>      if (!obj)
>          return;
>
> +    virStoragePoolObjClearVols(obj);
> +

ACK.
This is crying for integration testing...

--
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]