From: Victor Julien Date: Wed, 24 Feb 2016 11:45:47 +0000 (+0100) Subject: flowbits: fix memory leak X-Git-Tag: suricata-3.0.1RC1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53af48f021ac018aaa2d0d953355110cfd5cb047;p=thirdparty%2Fsuricata.git flowbits: fix memory leak Flowbits removed from a flow by 'toggle' or 'unset' were not actually freed, leading a small memory leak. --- 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