优化
This commit is contained in:
2
cap.c
2
cap.c
@@ -188,7 +188,6 @@ void packet_handler(u_char *args, const struct pcap_pkthdr *header, const u_char
|
||||
const char *REGION_ENV = NULL;
|
||||
|
||||
char ipset_query_command[256] = { 0 };
|
||||
//char ip_query_command[256] = { 0 };
|
||||
|
||||
// 定义 Response 结构体
|
||||
Response response;
|
||||
@@ -271,6 +270,7 @@ void packet_handler(u_char *args, const struct pcap_pkthdr *header, const u_char
|
||||
fprintf(stderr, "Failed to parse JSON.\n");
|
||||
}
|
||||
|
||||
if (p != NULL)
|
||||
free(p);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user