forked from Mirrors/sngrep
hep: free fake frame data after packet creation #399
This commit is contained in:
parent
cc3342b652
commit
ffe39e7218
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue