]> git.ipfire.org Git - thirdparty/libvirt.git/commit
interface: Consume @def in virInterfaceObjNew
authorJohn Ferlan <jferlan@redhat.com>
Fri, 2 Jun 2017 11:56:59 +0000 (07:56 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 6 Jun 2017 16:05:00 +0000 (12:05 -0400)
commit92840eb3a7e47cdf761e52afccc41d2a35327fbd
tree04dcd3f8e4152ae38485de390fe95749d40a0bd7
parent309947375a97bc252090749c8e50f093d6f582f0
interface: Consume @def in virInterfaceObjNew

Move the consumption of @def in virInterfaceObjNew and then handle that
in the error path of virInterfaceObjListAssignDef since it's caller expects
to need to free @def when NULL is returned and so would virInterfaceObjFree.

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