]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainEventCallbackListFree: Don't leak @list->callbacks
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Nov 2013 09:33:30 +0000 (10:33 +0100)
committerEric Blake <eblake@redhat.com>
Wed, 15 Jan 2014 21:49:57 +0000 (14:49 -0700)
commit4f169b0e13c32984351d09704948c794b0203817
tree275e2c22c6ee403505b29b713ff3bdc181ad85ee
parent8342adeffb260c564edd4d7279fcb8c3499a997f
virDomainEventCallbackListFree: Don't leak @list->callbacks

The @list->callbacks is an array that is inflated whenever a new event
is added, e.g. via virDomainEventCallbackListAddID(). However, when we
are freeing the array, we free the items within it but forgot to
actually free it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
(cherry picked from commit ea13a759f5b32204e1a7bdf6ee228235acb42bcb)
src/conf/domain_event.c