diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-03-07 22:05:24 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-03-07 22:05:24 -0800 |
commit | 40fe5f21bae1847a92f18efdcc8ad061db8f6cce (patch) | |
tree | f48aa36f57454c1b988eaaa5b4ecfea339ebccf4 /savefile.c | |
parent | 36b418066323e5c0e303638fa9845f564511b38b (diff) |
Plug a file descriptor leak.
Diffstat (limited to 'savefile.c')
-rw-r--r-- | savefile.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -317,6 +317,7 @@ pcap_t* pcap_hopen_offline_with_tstamp_precision(intptr_t osfd, u_int precision, { pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, errno, "_fdopen"); + _close(fd); return NULL; } |