Re: [PATCH 2/4] conf: cpu: Fix memory leak when specifying cpu vendor_id manually

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

 



On 12/17/2012 12:22 PM, Peter Krempa wrote:
> The field was not freed from the cpu definition.
> ---
>  src/conf/cpu_conf.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c
> index 6157ed7..7528980 100644
> --- a/src/conf/cpu_conf.c
> +++ b/src/conf/cpu_conf.c
> @@ -87,6 +87,7 @@ virCPUDefFree(virCPUDefPtr def)
>          VIR_FREE(def->cells[i].cpustr);
>      }
>      VIR_FREE(def->cells);
> +    VIR_FREE(def->vendor_id);
> 
>      VIR_FREE(def);
>  }
> 

ACK,

Martin

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