Re: [PATCH] Don't leak delay string when freeing virInterfaceBridgeDefs

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

 



On Tue, Aug 03, 2010 at 10:40:26AM -0400, Laine Stump wrote:
> I noticed this while looking into checking the default bridge delay to 0.
> ---
>  src/conf/interface_conf.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/conf/interface_conf.c b/src/conf/interface_conf.c
> index 6430f7a..b24526f 100644
> --- a/src/conf/interface_conf.c
> +++ b/src/conf/interface_conf.c
> @@ -84,6 +84,7 @@ void virInterfaceDefFree(virInterfaceDefPtr def)
>  
>      switch (def->type) {
>          case VIR_INTERFACE_TYPE_BRIDGE:
> +            VIR_FREE(def->data.bridge.delay);
>              for (i = 0;i < def->data.bridge.nbItf;i++) {
>                  if (def->data.bridge.itf[i] == NULL)
>                      break; /* to cope with half parsed data on errors */

  ACK

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

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