mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00: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++;
|
ret++;
|
||||||
}
|
}
|
||||||
|
|
||||||
virObjectEventCallbackFree(cb);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user