Signed-off-by: Olaf Hering <[email protected]>
---
tools/xentrace/xentrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/xentrace/xentrace.c b/tools/xentrace/xentrace.c
index a073cab26d..3548255123 100644
--- a/tools/xentrace/xentrace.c
+++ b/tools/xentrace/xentrace.c
@@ -794,7 +794,6 @@ static void monitor_tbufs(void)
free(meta);
free(data);
/* don't need to munmap - cleanup is automatic */
- close(outfd);
}
@@ -1225,6 +1224,7 @@ int main(int argc, char **argv)
monitor_tbufs();
+ close(outfd);
return 0;
}