Fix some errors and leaks found while fuzzing locally (#7757)

This commit is contained in:
Ivan Nardi 2023-08-14 17:15:20 +02:00 committed by GitHub
parent e1c9f92c72
commit 499d060fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 3 deletions

View file

@ -197,9 +197,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
iface->dissectPacket(DUMMY_BRIDGE_INTERFACE_ID, true, NULL, hdr, pkt,
&p, &srcHost, &dstHost, &flow);
}
pcap_close(pcap_handle);
end:
fclose(fd);
iface->cleanup();
return 0;