diff options
author | 2001-12-17 22:29:47 +0000 | |
---|---|---|
committer | 2001-12-17 22:29:47 +0000 | |
commit | 78871eb876677c1cfa6cb2a6202247a39f574ae0 (patch) | |
tree | 700ae2d407e898e8e429b3ec9e8f7a240c082bee /lib/libpcap/pcap.c | |
parent | sync (diff) | |
download | wireguard-openbsd-78871eb876677c1cfa6cb2a6202247a39f574ae0.tar.xz wireguard-openbsd-78871eb876677c1cfa6cb2a6202247a39f574ae0.zip |
fix memory leak associated with compiled BPF program, sync'd from tcpdump.org. ok itojun@
Diffstat (limited to 'lib/libpcap/pcap.c')
-rw-r--r-- | lib/libpcap/pcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/pcap.c b/lib/libpcap/pcap.c index 0fd1adb9213..6e75ef90b10 100644 --- a/lib/libpcap/pcap.c +++ b/lib/libpcap/pcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcap.c,v 1.6 1999/07/20 04:49:55 deraadt Exp $ */ +/* $OpenBSD: pcap.c,v 1.7 2001/12/17 22:29:47 dugsong Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998 @@ -35,7 +35,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/lib/libpcap/pcap.c,v 1.6 1999/07/20 04:49:55 deraadt Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/lib/libpcap/pcap.c,v 1.7 2001/12/17 22:29:47 dugsong Exp $ (LBL)"; #endif #include <sys/types.h> @@ -202,6 +202,6 @@ pcap_close(pcap_t *p) if (p->md.device != NULL) free(p->md.device); #endif - + pcap_freecode(&p->fcode); free(p); } |