mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
Use virSecretObjEndAPI() more
Instead of explicit virObjectUnlock(obj) + virObjectUnref(obj) combo the virSecretObjEndAPI() can be used. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
cb3d3b4f38
commit
061b691cff
@ -301,8 +301,7 @@ virSecretObjListRemove(virSecretObjList *secrets,
|
|||||||
virObjectRWLockWrite(secrets);
|
virObjectRWLockWrite(secrets);
|
||||||
virObjectLock(obj);
|
virObjectLock(obj);
|
||||||
virHashRemoveEntry(secrets->objs, uuidstr);
|
virHashRemoveEntry(secrets->objs, uuidstr);
|
||||||
virObjectUnlock(obj);
|
virSecretObjEndAPI(&obj);
|
||||||
virObjectUnref(obj);
|
|
||||||
virObjectRWUnlock(secrets);
|
virObjectRWUnlock(secrets);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user