]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostdevtest: Don't leak @mgr->activeSCSIHostdevs
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 10 Aug 2017 07:14:36 +0000 (09:14 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 10 Aug 2017 09:22:27 +0000 (11:22 +0200)
commite02b5722ed9d88b2e993eba829fc2bcc6c720aab
tree659bf8390ccd10a5cd63239d538f76e0bb904b6b
parent1fe68b2e733b4b07d46ea8955b287a5f0d218c6c
virhostdevtest: Don't leak @mgr->activeSCSIHostdevs

So the hostdev manager has some lists to keep track which devices
are active (=assigned to a domain) or inactive. The manager and
its lists are allocated in myInit and freed in myCleanup but one
of them (activeSCSIHostdevs) was missing. Also, the order in
which the cleanup was done doesn't make it easy to spot it,
therefore reoder it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/virhostdevtest.c