1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/python
Tony Asleson bbff143d54 python-lvm: Memory leaks & seg. fault fixes
Issues found (thus far) in unit test developemnt for python bindings.

Added Py_DECREF(ptr) in liblvm_lvm_vg_open & liblvm_lvm_vg_create
in error paths so that we correctly clean up memory.

Added a call to lvm_vg_close when we remove a vg.  The code was
clearing out the vg pointer which prevented us from actually
calling lvm_vg_close in the close path.

liblvm_lvm_vg_create_lv_linear was not initializing
lvobj->parent_vgobj and if lvm_vg_create_lv_linear failed
we went through liblvm_lv_dealloc on clean up and tried to
Py_DECREF an invalid pointer.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
2012-10-25 18:09:10 -05:00
..
example.py python-lvm: Update example to work with lvm object removal. 2012-10-15 14:11:10 -07:00
liblvm.c python-lvm: Memory leaks & seg. fault fixes 2012-10-25 18:09:10 -05:00
Makefile.in python: Add bindings for liblvm2app. 2012-10-12 02:08:47 +01:00
setup.py.in python: Add bindings for liblvm2app. 2012-10-12 02:08:47 +01:00