• K
    lxc: completely rework reference counting · 306b3a85
    Katerina Koukiou 提交于
    This patch follows the pattern used in qemu driver regarding
    reference counting.
    It changes lxcDomObjFromDomain() to ref the domain (using
    virDomainObjListFindByUUIDRef()) and adds virDomainObjEndAPI() which
    should be the only function in which the return value of
    virObjectUnref() is checked.  This makes all reference counting
    deterministic and makes the code a bit clearer.
    Signed-off-by: NKaterina Koukiou <k.koukiou@gmail.com>
    306b3a85
lxc_domain.c 10.7 KB