25 lines
589 B
Diff
25 lines
589 B
Diff
From 40fe5f21bae1847a92f18efdcc8ad061db8f6cce Mon Sep 17 00:00:00 2001
|
|
From: Guy Harris <guy@alum.mit.edu>
|
|
Date: Thu, 7 Mar 2019 22:05:24 -0800
|
|
Subject: [PATCH 12/83] Plug a file descriptor leak.
|
|
|
|
---
|
|
savefile.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/savefile.c b/savefile.c
|
|
index 01ee7d0..c6c0cb8 100644
|
|
--- a/savefile.c
|
|
+++ b/savefile.c
|
|
@@ -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;
|
|
}
|
|
|
|
--
|
|
1.8.3.1
|
|
|