]> xenbits.xensource.com Git - libvirt.git/commit
virStorageSourceClear: Unref @vhostuser
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Feb 2021 19:16:03 +0000 (20:16 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2021 10:54:38 +0000 (11:54 +0100)
commit676e56e515bb58bc0ee69d26537f6850c740be81
tree7852cdce222e97e496935d2fbbedffb755050462
parent7415e72e68be94bc7a971e16675e2ffb04741f2f
virStorageSourceClear: Unref @vhostuser

The @vhostuser member of virStorageSource structure is allocated
during parsing in virDomainDiskSourceVHostUserParse() but never
freed leading to a memleak. Since the member is an object it has
to be unrefed instead of g_free()-d.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/storage_source_conf.c