]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: domain_conf: cleanup def in case of errors
authorShaleen Bathla <shaleen.bathla@oracle.com>
Thu, 11 Jan 2024 12:57:54 +0000 (18:27 +0530)
committerJonathon Jongsma <jjongsma@redhat.com>
Thu, 11 Jan 2024 22:53:31 +0000 (16:53 -0600)
commit9ef6fee12909a70e52b37c3e5277e83d70cdf0da
treedd8e1e4d5e38d95197d4a21f95a00a1358d30281
parent6fa82fd8e23bed12ca67b86e6d093c0031881887
conf: domain_conf: cleanup def in case of errors

Just like in rest of the function virDomainFSDefParseXML,
use goto error so that def will be cleaned up in error cases.

Signed-off-by: Shaleen Bathla <shaleen.bathla@oracle.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/conf/domain_conf.c