[libvirt] [PATCH 2/4] conf: cpu: Fix memory leak when specifying cpu vendor_id manually
Martin Kletzander
mkletzan at redhat.com
Mon Dec 17 14:55:55 UTC 2012
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
More information about the libvir-list
mailing list