|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xentrace: close output file in the function which opened it
commit dc98fa74446e5abe417e5ba9a6a632b50444cfa1
Author: Olaf Hering <olaf@xxxxxxxxx>
AuthorDate: Wed May 31 17:06:58 2023 +0100
Commit: George Dunlap <george.dunlap@xxxxxxxxx>
CommitDate: Wed May 31 17:06:58 2023 +0100
xentrace: close output file in the function which opened it
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Reviewed-by: George Dunlap <george.dunlap@xxxxxxxxx>
---
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;
}
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |