mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
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:
parent
0b450b0ad1
commit
8d4468d007
@ -453,7 +453,6 @@ virObjectEventCallbackListAddID(virConnectPtr conn,
|
||||
ret++;
|
||||
}
|
||||
|
||||
virObjectEventCallbackFree(cb);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user