diff options
author | Dug Song <dugsong@cvs.openbsd.org> | 2001-12-17 22:29:48 +0000 |
---|---|---|
committer | Dug Song <dugsong@cvs.openbsd.org> | 2001-12-17 22:29:48 +0000 |
commit | bbe59f21e87f4cfe481e1fdbe7c8362fb6aadb05 (patch) | |
tree | 60a864e69a02a1953a1a47eed9e6d8bf6b8415e7 /lib/libpcap/pcap.h | |
parent | 1b202420623b9166d498382e29124797e5c30d3f (diff) |
fix memory leak associated with compiled BPF program, sync'd from tcpdump.org. ok itojun@
Diffstat (limited to 'lib/libpcap/pcap.h')
-rw-r--r-- | lib/libpcap/pcap.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libpcap/pcap.h b/lib/libpcap/pcap.h index 5ac1e301f93..382f5f1d2bd 100644 --- a/lib/libpcap/pcap.h +++ b/lib/libpcap/pcap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcap.h,v 1.9 2001/10/02 18:04:35 deraadt Exp $ */ +/* $OpenBSD: pcap.h,v 1.10 2001/12/17 22:29:47 dugsong Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996, 1997 @@ -32,7 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/pcap.h,v 1.9 2001/10/02 18:04:35 deraadt Exp $ (LBL) + * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/pcap.h,v 1.10 2001/12/17 22:29:47 dugsong Exp $ (LBL) */ #ifndef lib_pcap_h @@ -119,8 +119,7 @@ int pcap_compile(pcap_t *, struct bpf_program *, char *, int, bpf_u_int32); int pcap_compile_nopcap(int, int, struct bpf_program *, char *, int, bpf_u_int32); -/* XXX */ -int pcap_freecode(pcap_t *, struct bpf_program *); +void pcap_freecode(struct bpf_program *); int pcap_datalink(pcap_t *); int pcap_snapshot(pcap_t *); int pcap_is_swapped(pcap_t *); |