OCT 1.关闭pcap句柄,释放资源

This commit is contained in:
dongwenze 2023-04-19 09:34:38 +08:00
parent efce4ce141
commit 4eeb3e6b99
1 changed files with 3 additions and 0 deletions

View File

@ -717,6 +717,9 @@ void init_filter() {
bpf.len = fcode.bf_len;
bpf.filter = g_filters;
pcap_close(pd);
pcap_freecode(&fcode);
#endif
}