]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
hosts: release packet references to hosts 3042/head
authorVictor Julien <victor@inliniac.net>
Sun, 3 Dec 2017 21:10:37 +0000 (22:10 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 4 Dec 2017 08:39:45 +0000 (09:39 +0100)
src/tmqh-packetpool.c

index 913cb3e78c937c588562b21da832ace9ea975200..2c7f95888b21f4f9f527c698d1b5810ab7c99b47 100644 (file)
@@ -517,20 +517,18 @@ void TmqhOutputPacketpool(ThreadVars *t, Packet *p)
         SCLogDebug("tunnel stuff done, move on (proot %d)", proot);
     }
 
-    FlowDeReference(&p->flow);
-
     /* we're done with the tunnel root now as well */
     if (proot == 1) {
         SCLogDebug("getting rid of root pkt... alloc'd %s", p->root->flags & PKT_ALLOC ? "true" : "false");
 
-        FlowDeReference(&p->root->flow);
-
+        PACKET_RELEASE_REFS(p->root);
         p->root->ReleasePacket(p->root);
         p->root = NULL;
     }
 
     PACKET_PROFILING_END(p);
 
+    PACKET_RELEASE_REFS(p);
     p->ReleasePacket(p);
 
     SCReturn;