xentrace: close output file in the function which opened it

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: George Dunlap <george.dunlap@cloud.com>
This commit is contained in:
Olaf Hering authored and George Dunlap committed 2023-05-31 17:06:58 +01:00
1 parent f53c498276
commit dc98fa7444
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}
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.