]> xenbits.xensource.com Git - libvirt.git/commit
qemusecuritymock: Introduce and use freePaths()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Apr 2019 14:15:10 +0000 (16:15 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Jul 2019 06:36:03 +0000 (08:36 +0200)
commit8ffb5f27384d73390c8b190eee2b0a40b4a4f3eb
tree6deaf6c25616322092e298a1761477ec964d78fb
parent80cf6ec6f23933f96656f29290b790d17030c79e
qemusecuritymock: Introduce and use freePaths()

Problem with current approach is that if
qemuSecuritySetAllLabel() fails, then the @chown_paths and
@xattr_paths hash tables are not freed and preserve values
already stored there into the next test case.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemusecuritymock.c
tests/qemusecuritytest.c
tests/qemusecuritytest.h