]> git.ipfire.org Git - thirdparty/libvirt.git/commit
datatypes: Introduce some admin-related close callback handling helpers
authorErik Skultety <eskultet@redhat.com>
Thu, 10 Nov 2016 12:20:26 +0000 (13:20 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 14 Nov 2016 09:18:56 +0000 (10:18 +0100)
commit7cea74a3b2dee6a4b735d7877de47f0ecd86fb77
tree7c98f8a3373dbce7f8402bf50b3b6f572886758a
parentd46a1e5d45baa6ce704767efb9fc6387f3d10a76
datatypes: Introduce some admin-related close callback handling helpers

Well, there were three different spots where closeCallback->freeCallback was
called, not looking the same --> potential for bugs - and there indeed is a bug
with refcounting of the @conn object. So this patch partially follows the path
set by commit 24dbb69f by introducing some close callback helpers both to
replace all the spots where we call clean the close callback data with a
dedicated function and to be able to fix the refcounting bug causing a memleak.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
po/POTFILES.in
src/datatypes.c
src/datatypes.h
src/libvirt_admin_private.syms