]> xenbits.xensource.com Git - libvirt.git/commit
conf: stop using hash key when free'ing hash entries
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 22 Nov 2019 10:49:27 +0000 (10:49 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 22 Nov 2019 14:21:16 +0000 (14:21 +0000)
commitfeef23e130d4b02377323ae2c20376ec990182a1
treee9f05cfa0a03c202852bf2c54b0cbe784ed46749
parentc6a9e54ce3252196f1fc6aa9e57537a659646d18
conf: stop using hash key when free'ing hash entries

The virChrdevHashEntryFree method uses the hash 'key'
as the name of the logfile it has to remove. By storing
a struct as the value which contains the stream and
the dev path, we can avoid relying on the hash key
when free'ing entries.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/virchrdev.c