]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix a memory leak in the snapshot code in libvirtd.
authorChris Lalancette <clalance@redhat.com>
Fri, 23 Apr 2010 15:57:16 +0000 (11:57 -0400)
committerChris Lalancette <clalance@redhat.com>
Fri, 23 Apr 2010 18:20:11 +0000 (14:20 -0400)
commit4aa36a68a6bdb9d085db16fd6ddeb7f4458ca8b0
treec1baa008be42540573db17be56aa3f43f17a2e20
parent40648b156bc116c8d4e71baac9c33c4c7c665fe1
Fix a memory leak in the snapshot code in libvirtd.

While running libvirtd under valgrind and doing some
snapshot testing I noticed that we would always leak a
connection reference.  The problem was actually that we
were leaking a domain reference in the libvirtd remote
snapshot code, which was in turn causing a leaked
connection reference.  Fix the situation by explicitly
taking and dropping a domain reference where we need it.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
daemon/remote.c