From: Peter Krempa Date: Wed, 4 Aug 2021 09:17:36 +0000 (+0200) Subject: virObjectEventCallbackListAddID: Remove pointless cleanup of 'cb' X-Git-Tag: v7.7.0-rc1~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4468d00791cccd0872c9a673988d8bc7b41105;p=thirdparty%2Flibvirt.git 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 --- 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; }