Message ID | 20181205223809.036f3950@vmware.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 6cb0b60fd5e8365d18c58bfe3787a91d93661271 |
Headers | show |
Series | trace-cmd: Fix left open file descriptor in recording of date | expand |
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index 038b2313..24580a40 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -3421,6 +3421,7 @@ static unsigned long long find_time_stamp(struct tep_handle *pevent) if (ts) break; } while (r > 0); + close(fd); if (ts) break; }