summaryrefslogtreecommitdiffstats
path: root/src/source-pfring.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/source-pfring.c')
-rw-r--r--src/source-pfring.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/source-pfring.c b/src/source-pfring.c
index 96da94e..10eac2f 100644
--- a/src/source-pfring.c
+++ b/src/source-pfring.c
@@ -430,6 +430,7 @@ TmEcode ReceivePfringLoop(ThreadVars *tv, void *data, void *slot)
}
} else if (unlikely(r == 0)) {
if (suricata_ctl_flags & SURICATA_STOP) {
+ TmqhOutputPacketpool(ptv->tv, p);
SCReturnInt(TM_ECODE_OK);
}
@@ -701,6 +702,7 @@ TmEcode ReceivePfringThreadDeinit(ThreadVars *tv, void *data)
}
pfring_close(ptv->pd);
+ SCFree(ptv);
return TM_ECODE_OK;
}