From 737558aa98d3b86de65ff8e1fd0fe39d5debcde7 Mon Sep 17 00:00:00 2001 From: fenner Date: Tue, 27 May 1997 00:01:12 +0000 Subject: Virgin import of libpcap 0.3 --- contrib/libpcap/pcap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'contrib/libpcap/pcap.c') 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 @@ -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); } -- cgit v1.1