virObjectEventCallbackListAddID: Remove pointless cleanup of 'cb'

'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>
This commit is contained in:
Peter Krempa 2021-08-04 11:17:36 +02:00
parent 0b450b0ad1
commit 8d4468d007

View File

@ -453,7 +453,6 @@ virObjectEventCallbackListAddID(virConnectPtr conn,
ret++;
}
virObjectEventCallbackFree(cb);
return ret;
}