From 371029605754ce87dfce5740c7f1f19ec95e4cd2 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 23 Dec 2010 14:57:13 +0100 Subject: [PATCH] Cleanup defrag engine on shutdown. --- src/defrag.h | 2 ++ src/suricata.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/defrag.h b/src/defrag.h index d34c17115d..5881c2597a 100644 --- a/src/defrag.h +++ b/src/defrag.h @@ -27,6 +27,8 @@ typedef struct _DefragContext DefragContext; void DefragInit(void); +void DefragDestroy(void); + Packet *Defrag(ThreadVars *, DecodeThreadVars *, DefragContext *, Packet *); void DefragRegisterTests(void); diff --git a/src/suricata.c b/src/suricata.c index eb92e0739a..48452da27c 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1300,6 +1300,7 @@ int main(int argc, char **argv) OutputDeregisterAll(); TimeDeinit(); SCProtoNameDeInit(); + DefragDestroy(); #ifdef PROFILING if (profiling_rules_enabled)