From 8d4468d00791cccd0872c9a673988d8bc7b41105 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 4 Aug 2021 11:17:36 +0200 Subject: [PATCH] virObjectEventCallbackListAddID: Remove pointless cleanup of 'cb' 'cb' is always NULL when 'virObjectEventCallbackListAddID' is called. Remove the call. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- 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; }