]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/thash: decrease memuse if array was allocated 11445/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 4 Jul 2024 11:55:27 +0000 (13:55 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Jul 2024 08:36:22 +0000 (10:36 +0200)
commitc9dbc565d96c121ec8356de42624aae7998dca9f
treea5d93234aa20856e68d53f4a214fc929e4718564
parent6824a4bc5f5eb0df924b5694cef1e3c2ffe9fe20
util/thash: decrease memuse if array was allocated

THashInitConfig may not allocate array and increase memuse.
Such a failure leads to THashShutdown which should not decrease
the memuse.

Ticket: 7135
(cherry picked from commit eeec609ac822a9d3ffc407428d6e6a75f4e30afa)
src/util-thash.c