diff --git a/src/app-layer-htp-mem.c b/src/app-layer-htp-mem.c index 39a4f4e19c..8d5e9f0e8b 100644 --- a/src/app-layer-htp-mem.c +++ b/src/app-layer-htp-mem.c @@ -61,6 +61,9 @@ void HTPParseMemcap() /* default to unlimited */ htp_config_memcap = 0; } + + SC_ATOMIC_INIT(htp_memuse); + SC_ATOMIC_INIT(htp_memcap); } void HTPIncrMemuse(uint64_t size)