]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: node_device: use separate variables for parsing integers
authorJán Tomko <jtomko@redhat.com>
Tue, 30 May 2023 14:59:56 +0000 (16:59 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 1 Jun 2023 08:31:31 +0000 (10:31 +0200)
commit0033998e9a8d6b3857b6e7ec683e3d380c970aa1
tree89146cbed3f99d1b928eba3867ce7f29a782c7f1
parentc47e17689e3309e544b59f5a9eb7b9d668967787
conf: node_device: use separate variables for parsing integers

In virNodeDeviceGetSCSIHostCaps, there is a pattern of reusing
a tmp value and stealing the pointer.

But in two case it is not stolen. Use separate variables for them
to avoid mixing autofree with manual free() calls.

Fixes: 8a0cb5f73ade3900546718eabe70cb064c6bd22c
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/node_device_conf.c