]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Move virObjectRef during AssignDef processing
authorJohn Ferlan <jferlan@redhat.com>
Wed, 26 Jul 2017 13:43:12 +0000 (09:43 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 16 Aug 2017 18:17:57 +0000 (14:17 -0400)
commit178ac3d133d97c6d91d9a7c067b5a64c3dfe962e
treee77c108a855eca5b3f8efc4a36947e7a94b8fef6
parent7beef70871d29e6097652e26051a47bacceb7dc5
network: Move virObjectRef during AssignDef processing

Move the virObjectRef in virNetworkObjAssignDefLocked to after
the virHashAddEntry to make it "clearer" why the @ref is being
incremented. Upon return from the ObjNew we will have 1 ref on
the object already, adding it to the hash table requires the
increment.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/virnetworkobj.c