[libvirt] [PATCH 6/6] virObjectEventNew: Use virObjectUnref() to free virObjectEvent

Peter Krempa pkrempa at redhat.com
Thu Aug 4 10:18:13 UTC 2016


On Thu, Aug 04, 2016 at 09:47:50 +0200, Michal Privoznik wrote:
> 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 at redhat.com>
> ---
>  src/conf/object_event.c | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)

ACK




More information about the libvir-list mailing list