My program use libpcap like this:
while pcaket = pcap_next() {
... (modify the pcaket and do checksum) ... pcap_sendpacket(pcaket)
}
Recently, I found there is a memory leak in my program...
My question is: Will the libpcap free the pcaket after pcap_next? or I have to do the free work myself ?