]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDefParseBootInitOptions: Don't leak 'name' on failure
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Sep 2024 14:46:02 +0000 (16:46 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 10 Sep 2024 12:24:48 +0000 (14:24 +0200)
commitbc02cb95063aa1151a77c93f3dc177d7987202ba
treee874d8068cb980d547ff57fe3b98793e8321a222
parent2feeefc0b4e3f6b95969abcb0c2a2639cec7e19d
virDomainDefParseBootInitOptions: Don't leak 'name' on failure

One of the failure paths skips code which would assign the string from
the temporary variable to the parsed struct, thus leaking it on failure.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/672
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c