diff options
author | fenner <fenner@FreeBSD.org> | 1997-05-27 00:01:12 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1997-05-27 00:01:12 +0000 |
commit | 737558aa98d3b86de65ff8e1fd0fe39d5debcde7 (patch) | |
tree | de061620aa05599ec749d528046e58091ef80529 /contrib/libpcap/pcap.c | |
parent | 498933506f435a155849919ee10bbdbc9ad42caa (diff) | |
download | FreeBSD-src-737558aa98d3b86de65ff8e1fd0fe39d5debcde7.zip FreeBSD-src-737558aa98d3b86de65ff8e1fd0fe39d5debcde7.tar.gz |
Virgin import of libpcap 0.3
Diffstat (limited to 'contrib/libpcap/pcap.c')
-rw-r--r-- | contrib/libpcap/pcap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/libpcap/pcap.c b/contrib/libpcap/pcap.c index 55c4933..74666a7 100644 --- a/contrib/libpcap/pcap.c +++ b/contrib/libpcap/pcap.c @@ -32,8 +32,8 @@ */ #ifndef lint -static char rcsid[] = - "@(#) $Header: pcap.c,v 1.25 96/06/05 21:45:26 leres Exp $ (LBL)"; +static const char rcsid[] = + "@(#) $Header: pcap.c,v 1.27 96/11/27 18:43:25 leres Exp $ (LBL)"; #endif #include <sys/types.h> @@ -190,6 +190,10 @@ pcap_close(pcap_t *p) free(p->sf.base); } else if (p->buffer != NULL) free(p->buffer); +#ifdef linux + if (p->md.device != NULL) + free(p->md.device); +#endif free(p); } |