]> xenbits.xensource.com Git - libvirt.git/commit
python: Avoid memory leaks on libvirt_virNodeGetMemoryStats
authorAlex Jia <ajia@redhat.com>
Wed, 21 Mar 2012 15:30:03 +0000 (23:30 +0800)
committerAlex Jia <ajia@redhat.com>
Wed, 21 Mar 2012 15:32:34 +0000 (23:32 +0800)
commit53b45aa494a94854862603f5694d137f928edfdd
tree02e755b3d75d33abfcb348537e143540bfb39203
parent2791b8ab9b7027433ba34946de8a43de8231b722
python: Avoid memory leaks on libvirt_virNodeGetMemoryStats

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@redhat.com>
python/libvirt-override.c