mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
0edbf95987
commit
dd2ef9d50d
2 files changed
+2
No files matched your search
@@ -67,6 +67,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
xc_interface_close(xch);
|
||||
xtl_logger_destroy(l);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||