]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virObjectEventNew: Use virObjectUnref() to free virObjectEvent
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2016 06:33:17 +0000 (08:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2016 13:32:22 +0000 (15:32 +0200)
commitb660238eb11d83c3d42bf400424ed5959498ac86
tree177f4c11f80573ea8a6c3fa6e381f54f66104142
parentb3df357da60815081259bfe3ad2a5a2ed6a8b974
virObjectEventNew: Use virObjectUnref() to free virObjectEvent

While no leak was observed yet, there might be one if
virObjectEventClass is ever derived from another class. Because
in that case plain VIR_FREE() will not call dispose() from parent
classes possibly leaking some memory.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/object_event.c