]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virObjectEventCallbackListAddID: Remove pointless cleanup of 'cb'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Aug 2021 09:17:36 +0000 (11:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Aug 2021 06:53:26 +0000 (08:53 +0200)
'cb' is always NULL when 'virObjectEventCallbackListAddID' is called.
Remove the call.

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

index 866d438f89487d5d73bfd92afeecf9c2e93ad6f6..9ea9ee349681e4a6d60d646eea0ab9c92bd67ccf 100644 (file)
@@ -453,7 +453,6 @@ virObjectEventCallbackListAddID(virConnectPtr conn,
             ret++;
     }
 
-    virObjectEventCallbackFree(cb);
     return ret;
 }