From: Victor Julien Date: Sun, 3 Dec 2017 21:10:37 +0000 (+0100) Subject: hosts: release packet references to hosts X-Git-Tag: suricata-4.0.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d19f27b11d50d2a4f5d9bb17bc1ca7b37e2886d9;p=thirdparty%2Fsuricata.git hosts: release packet references to hosts --- diff --git a/src/tmqh-packetpool.c b/src/tmqh-packetpool.c index e3a2f0acea..bda39d0ffc 100644 --- a/src/tmqh-packetpool.c +++ b/src/tmqh-packetpool.c @@ -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;