From 53af48f021ac018aaa2d0d953355110cfd5cb047 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 24 Feb 2016 12:45:47 +0100 Subject: [PATCH] flowbits: fix memory leak Flowbits removed from a flow by 'toggle' or 'unset' were not actually freed, leading a small memory leak. --- src/flow-bit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flow-bit.c b/src/flow-bit.c index 934d485996..2b4ef5ccfa 100644 --- a/src/flow-bit.c +++ b/src/flow-bit.c @@ -88,6 +88,7 @@ static void FlowBitRemove(Flow *f, uint16_t idx) return; GenericVarRemove(&f->flowvar, (GenericVar *)fb); + FlowBitFree(fb); //printf("FlowBitRemove: remove flowbit with idx %" PRIu32 "\n", idx); #ifdef FLOWBITS_STATS