]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pfring: fix leak of packet on exit
authorJason Ish <jason.ish@oisf.net>
Tue, 27 Feb 2024 23:19:54 +0000 (17:19 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 28 Feb 2024 13:24:03 +0000 (14:24 +0100)
Bug: #4734

src/source-pfring.c

index 40a42723d6a73b1bd300352bcc05a90cf652ac17..09efe8ac04947f37c8263b56f9652084df4de125 100644 (file)
@@ -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);
             }