]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDeviceInfoParseXML: Clear whole @info on failure
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 3 Oct 2017 08:38:50 +0000 (10:38 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 14 Oct 2017 00:55:41 +0000 (17:55 -0700)
commit02555bfe5c84888e9e96d098f39a06cde751ea11
tree19975d336afb7f0464fac39c18e88aebdf0e77bc
parent83a517cfe6167f816a49ebdab24a12f0cdb4b33b
virDomainDeviceInfoParseXML: Clear whole @info on failure

Currently, if parsing of device info fails info->alias is freed.
It doesn't make much sense to leave the rest of the struct
behind.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c