diff --git a/src/source-pfring.c b/src/source-pfring.c index 44c91cc61f..34eff68912 100644 --- a/src/source-pfring.c +++ b/src/source-pfring.c @@ -68,6 +68,7 @@ TmEcode ReceivePfringThreadDeinit(ThreadVars *, void *); TmEcode DecodePfringThreadInit(ThreadVars *, void *, void **); TmEcode DecodePfring(ThreadVars *, Packet *, void *, PacketQueue *, PacketQueue *); +TmEcode DecodePfringThreadDeinit(ThreadVars *tv, void *data); extern int max_pending_packets; extern uint8_t suricata_ctl_flags; @@ -183,7 +184,7 @@ void TmModuleDecodePfringRegister (void) { tmm_modules[TMM_DECODEPFRING].ThreadInit = DecodePfringThreadInit; tmm_modules[TMM_DECODEPFRING].Func = DecodePfring; tmm_modules[TMM_DECODEPFRING].ThreadExitPrintStats = NULL; - tmm_modules[TMM_DECODEPFRING].ThreadDeinit = NULL; + tmm_modules[TMM_DECODEPFRING].ThreadDeinit = DecodePfringThreadDeinit; tmm_modules[TMM_DECODEPFRING].RegisterTests = NULL; tmm_modules[TMM_DECODEPFRING].flags = TM_FLAG_DECODE_TM; } @@ -662,5 +663,14 @@ TmEcode DecodePfringThreadInit(ThreadVars *tv, void *initdata, void **data) return TM_ECODE_OK; } + +TmEcode DecodePfringThreadDeinit(ThreadVars *tv, void *data) +{ + if (data != NULL) + DecodeThreadVarsFree(data); + SCReturnInt(TM_ECODE_OK); +} + + #endif /* HAVE_PFRING */ /* eof */