af-packet: free ring buffer at exit

pull/3130/head
Eric Leblond 8 years ago committed by Victor Julien
parent 485663583a
commit ce59ec5d13

@ -2264,6 +2264,12 @@ TmEcode ReceiveAFPThreadDeinit(ThreadVars *tv, void *data)
ptv->datalen = 0;
ptv->bpf_filter = NULL;
if ((ptv->flags & AFP_TPACKET_V3) && ptv->ring_v3) {
SCFree(ptv->ring_v3);
} else {
if (ptv->ring_v2)
SCFree(ptv->ring_v2);
}
SCFree(ptv);
SCReturnInt(TM_ECODE_OK);

Loading…
Cancel
Save