mirror of https://github.com/OISF/suricata
iprep: unify free handling
Introduce a new util function to free a Hosts iprep code. It also
handles the Host use_cnt decrement.
This change makes sure we also decrement the use_cnt when cleaning
up when shutting down the host table.
Move the BUG_ON check for use_cnt into the HostClearMemory() func
to check it in more cases.
(cherry picked from commit 172d2b28a5)
pull/7127/head
parent
5753833e2e
commit
1ec3a574c7
Loading…
Reference in New Issue