summaryrefslogtreecommitdiffstats
path: root/generator.py
diff options
context:
space:
mode:
authorAlex Jia <ajia@redhat.com>2011-12-19 16:12:19 +0800
committerEric Blake <eblake@redhat.com>2011-12-19 11:46:06 -0700
commit49339e7e50991e115faf9ec85a9c6b61cb3f4538 (patch)
tree71dd0bf8cb580f94fa14507c1691150c5e86080d /generator.py
parent2bafe73ba23fc8b12b29fd01e253501ffce4886f (diff)
downloadlibvirt-python-v6-49339e7e50991e115faf9ec85a9c6b61cb3f4538.tar.gz
libvirt-python-v6-49339e7e50991e115faf9ec85a9c6b61cb3f4538.tar.xz
libvirt-python-v6-49339e7e50991e115faf9ec85a9c6b61cb3f4538.zip
python: plug memory leak on libvirt_virConnectOpenAuth
* Detected by valgrind. Leak introduced in commit 5ab109f. * python/libvirt-override.c: avoid memory leak on libvirt_virConnectOpenAuth. * How to reproduce? % valgrind -v --leak-check=full virt-clone --print-xml Note: it can hit the issue although options are incomplete. * Actual valgrind result: ==1801== 12 bytes in 1 blocks are definitely lost in loss record 25 of 3,270 ==1801== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==1801== by 0xCF1F60E: libvirt_virConnectOpenAuth (libvirt-override.c:1507) ==1801== by 0x3AFEEDE7F3: PyEval_EvalFrameEx (ceval.c:3794) ==1801== by 0x3AFEEDF99E: PyEval_EvalFrameEx (ceval.c:3880) ==1801== by 0x3AFEEDF99E: PyEval_EvalFrameEx (ceval.c:3880) ==1801== by 0x3AFEEDF99E: PyEval_EvalFrameEx (ceval.c:3880) ==1801== by 0x3AFEEDF99E: PyEval_EvalFrameEx (ceval.c:3880) ==1801== by 0x3AFEEE0466: PyEval_EvalCodeEx (ceval.c:3044) ==1801== by 0x3AFEEE0541: PyEval_EvalCode (ceval.c:545) ==1801== by 0x3AFEEFB88B: run_mod (pythonrun.c:1351) ==1801== by 0x3AFEEFB95F: PyRun_FileExFlags (pythonrun.c:1337) ==1801== by 0x3AFEEFCE4B: PyRun_SimpleFileExFlags (pythonrun.c:941) Signed-off-by: Alex Jia <ajia@redhat.com>
Diffstat (limited to 'generator.py')
0 files changed, 0 insertions, 0 deletions