OCT 1.关闭pcap句柄,释放资源
This commit is contained in:
parent
efce4ce141
commit
4eeb3e6b99
|
@ -717,6 +717,9 @@ void init_filter() {
|
||||||
|
|
||||||
bpf.len = fcode.bf_len;
|
bpf.len = fcode.bf_len;
|
||||||
bpf.filter = g_filters;
|
bpf.filter = g_filters;
|
||||||
|
|
||||||
|
pcap_close(pd);
|
||||||
|
pcap_freecode(&fcode);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue