[libvirt] [PATCHv3] python: Avoid memory leaks on libvirt_virNodeGetMemoryStats

Michal Privoznik mprivozn at redhat.com
Mon Mar 19 16:13:54 UTC 2012


On 17.02.2012 09:15, ajia at redhat.com wrote:
> From: Alex Jia <ajia at redhat.com>
> 
> Detected by valgrind. Leaks are introduced in commit 17c7795.
> 
> * python/libvirt-override.c (libvirt_virNodeGetMemoryStats): fix memory leaks
> and improve codes return value.
> 
> For details, please see the following link:
> RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=770944
> 
> Signed-off-by: Alex Jia <ajia at redhat.com>
> ---
>  python/libvirt-override.c |   46 ++++++++++++++++++++++++++++++--------------
>  1 files changed, 31 insertions(+), 15 deletions(-)
> 

ACK

Michal




More information about the libvir-list mailing list