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

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



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


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