]> 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>
Thu, 29 Feb 2024 10:24:41 +0000 (11:24 +0100)
Bug: #4734
(cherry picked from commit 358f1e35eed415d57cf24500deb58d1224c67b71)

src/source-pfring.c

index 96da94eff5334564d1e0fd9d8040058f15ed750b..7413b8d65227b01d5ad4fe2c827b51f7829e9adb 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);
             }