hep: free fake frame data after packet creation #399

This commit is contained in:
Kaian 2022-05-06 11:01:24 +02:00
parent cc3342b652
commit ffe39e7218
1 changed files with 6 additions and 0 deletions

View File

@ -675,6 +675,9 @@ capture_eep_receive_v2()
packet_set_type(pkt, PACKET_SIP_UDP);
packet_set_payload(pkt, payload, header.caplen);
// We don't longer require frame payload anymore, because adding the frame to packet clones its memory
sng_free(frame_payload);
// Store this packets in output file
capture_dump_packet(pkt);
@ -857,6 +860,9 @@ capture_eep_receive_v3(const u_char *pkt, uint32_t size)
packet_set_type(pkt_new, PACKET_SIP_UDP);
packet_set_payload(pkt_new, payload, header.caplen);
// We don't longer require frame payload anymore, because adding the frame to packet clones its memory
sng_free(frame_payload);
// Store this packets in output file
capture_dump_packet(pkt_new);