tools/xcutils: Free xtl loggers after use

While not much of a functional change, this prevents irritating warnings from
valgrind when trying to analyse xc_domain_{save,restore}() themselves.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
This commit is contained in:
Andrew Cooper authored and Ian Jackson committed 2014-03-10 17:19:11 +00:00
1 parent 0edbf95987
commit dd2ef9d50d
2 files changed
+2

No files matched your search

+1
View File
@@ -67,6 +67,7 @@ main(int argc, char **argv)
}
xc_interface_close(xch);
xtl_logger_destroy(l);
return ret;
}
+1
View File
@@ -222,6 +222,7 @@ main(int argc, char **argv)
xc_evtchn_close(si.xce);
xc_interface_close(si.xch);
xtl_logger_destroy(l);
return ret;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.