]> git.ipfire.org Git - thirdparty/lxc.git/commit
python3: Fix crashes in snapshot()
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 9 Jun 2014 16:02:02 +0000 (12:02 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 9 Jun 2014 19:24:10 +0000 (15:24 -0400)
commit4e31246a25d29db0c554ae2f6b34fc19b8fcdefd
treef0d7626d645c15a2433b82878678e4adfece2af2
parent0f84d97e6db311d1bd98150e11640edc5819b0fb
python3: Fix crashes in snapshot()

This makes sure all PyObject structs are always initialized to NULL,
this will fix issues such as (issue #239).

Also add a snapshot/list/restore testcase to the python3 api test code.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/python-lxc/examples/api_test.py
src/python-lxc/lxc.c