diff --git a/src/decode.c b/src/decode.c index c91b747c51..d75c637522 100644 --- a/src/decode.c +++ b/src/decode.c @@ -172,8 +172,10 @@ void PacketFreeOrRelease(Packet *p) { if (p->flags & PKT_ALLOC) PacketFree(p); - else + else { + p->ReleasePacket = PacketPoolReturnPacket; PacketPoolReturnPacket(p); + } } /**