dect
/
libpcap
Archived
13
0
Fork 0

Fixed a memory leak in pcap_close_win32: p->Packet was not freed when

the adapter is closed.
This commit is contained in:
risso 2004-06-16 15:51:46 +00:00
parent 4ce3baf349
commit 6ec634f388
1 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,7 @@
#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.22 2004-06-07 13:27:46 risso Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.23 2004-06-16 15:51:46 risso Exp $ (LBL)";
#endif
#include <pcap-int.h>
@ -383,6 +383,10 @@ pcap_close_win32(pcap_t *p)
PacketCloseAdapter(p->adapter);
p->adapter = NULL;
}
if (p->Packet) {
PacketFreePacket(p->Packet);
p->Packet = NULL;
}
}
pcap_t *