]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
hosts: release packet references to hosts
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:19:23 +0000 (09:19 +0100)
src/tmqh-packetpool.c

index e3a2f0aceab7d616d46e2a8fe0bf116eccc3d662..bda39d0ffc38066004c5a16888ce56a5f37eec6e 100644 (file)
@@ -519,20 +519,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 == true) {
         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;