[PATCH 15/23] virObjectEventCallbackListAddID: Remove pointless cleanup of 'cb'

Peter Krempa pkrempa at redhat.com
Wed Aug 4 11:02:35 UTC 2021


'cb' is always NULL when 'virObjectEventCallbackListAddID' is called.
Remove the call.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/conf/object_event.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/conf/object_event.c b/src/conf/object_event.c
index 866d438f89..9ea9ee3496 100644
--- a/src/conf/object_event.c
+++ b/src/conf/object_event.c
@@ -453,7 +453,6 @@ virObjectEventCallbackListAddID(virConnectPtr conn,
             ret++;
     }

-    virObjectEventCallbackFree(cb);
     return ret;
 }

-- 
2.31.1




More information about the libvir-list mailing list