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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux