Skip to content

Commit

Permalink
xentrace: close output file in the function which opened it
Browse files Browse the repository at this point in the history
Signed-off-by: Olaf Hering <[email protected]>
Reviewed-by: George Dunlap <[email protected]>
  • Loading branch information
olafhering authored and gwd committed May 31, 2023
1 parent f53c498 commit dc98fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/xentrace/xentrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,6 @@ static void monitor_tbufs(void)
free(meta);
free(data);
/* don't need to munmap - cleanup is automatic */
close(outfd);
}


Expand Down Expand Up @@ -1225,6 +1224,7 @@ int main(int argc, char **argv)

monitor_tbufs();

close(outfd);
return 0;
}

Expand Down

0 comments on commit dc98fa7

Please sign in to comment.