diff options
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r-- | pcap-usb-linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index ba18277..bcbe45a 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -384,6 +384,7 @@ usb_activate(pcap_t* handle) if (!handle->buffer) { snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno)); + close(handle->fd); return PCAP_ERROR; } return 0; |