]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: namespace: missing free in netns_sig_stop()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 14 Jun 2023 08:11:13 +0000 (10:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Jun 2023 09:27:29 +0000 (11:27 +0200)
commit4e17a3f5b1b5dca98efba5337274f3f719da2789
treea16757d17767ac6cae167a83229f67d3a5033286
parent19b5a7c7a5b4b01970e06d20928ed1d87ca6efcd
BUG/MINOR: namespace: missing free in netns_sig_stop()

On soft-stop, netns_sig_stop() function is called to purge the shared
namespace tree by iterating over each entries to free them.

However, once an entry is cleaned up and removed from the tree, the entry
itself isn't freed and this results into a minor leak when soft-stopping
because entry was allocated using calloc() in netns_store_insert() when
parsing the configuration.

This could be backported in every stable versions.
src/namespace.c