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