mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
f53c498276
commit
dc98fa7444
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||