]> xenbits.xensource.com Git - libvirt.git/commit
virGetConnectGeneric: Fix memleak of 'identparams' when connecting between split...
authorPeter Krempa <pkrempa@redhat.com>
Wed, 18 May 2022 08:49:34 +0000 (10:49 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 18 May 2022 11:46:30 +0000 (13:46 +0200)
commitdecc03857f091c05efea3eaf28546cdeb39c0f1e
tree89b2276971e6f8d1e7261d120c47e4044a347927
parent45064119c168aa277ab1d9a436103085b709ffdf
virGetConnectGeneric: Fix memleak of 'identparams' when connecting between split daemons

The 'identparams' typed parameter list obtained from
virIdentityGetParameters is leaked when called from
'virGetConnectGeneric'.

Use 'virTypedParamListFromParams' to absorb it into a virTypedParamList
which can be autofreed.

Note that the memleak is observable only when running in split-daemon
mode.

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