From c6edab9d5d38e4f2852b654726c729f678619a9f Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 10 Nov 2021 09:56:29 +0100 Subject: [PATCH] Use virInterfaceObjEndAPI() more Instead of explicit virObjectUnlock(obj) + virObjectUnref(obj) combo the virInterfaceObjEndAPI() can be used. Signed-off-by: Michal Privoznik Reviewed-by: Martin Kletzander --- src/conf/virinterfaceobj.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conf/virinterfaceobj.c b/src/conf/virinterfaceobj.c index fa7a21c054..c5dfa6c7f5 100644 --- a/src/conf/virinterfaceobj.c +++ b/src/conf/virinterfaceobj.c @@ -462,8 +462,7 @@ virInterfaceObjListRemove(virInterfaceObjList *interfaces, virObjectRWLockWrite(interfaces); virObjectLock(obj); virHashRemoveEntry(interfaces->objsName, obj->def->name); - virObjectUnlock(obj); - virObjectUnref(obj); + virInterfaceObjEndAPI(&obj); virObjectRWUnlock(interfaces); }