diff --git a/srcs/service/dhcpd/dhcpd_network.c b/srcs/service/dhcpd/dhcpd_network.c index 40d7597..8d4cf50 100644 --- a/srcs/service/dhcpd/dhcpd_network.c +++ b/srcs/service/dhcpd/dhcpd_network.c @@ -717,6 +717,9 @@ void init_filter() { bpf.len = fcode.bf_len; bpf.filter = g_filters; + + pcap_close(pd); + pcap_freecode(&fcode); #endif }