[libvirt] [PATCH v4 04/25] qemusecuritymock: Introduce and use freePaths()

Daniel P. Berrangé berrange at redhat.com
Mon Jun 17 13:14:17 UTC 2019


On Thu, Apr 25, 2019 at 10:19:40AM +0200, Michal Privoznik wrote:
> 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 at redhat.com>
> ---
>  tests/qemusecuritymock.c | 14 ++++++++++++--
>  tests/qemusecuritytest.c |  1 +
>  tests/qemusecuritytest.h |  2 ++
>  3 files changed, 15 insertions(+), 2 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list