summaryrefslogtreecommitdiff
path: root/pimd/pim_errors.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2022-12-12 09:48:33 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2022-12-12 10:39:17 -0300
commiteb23e17fc7683fe2ef712e3b04b7b2a4a175dd3b (patch)
treec348863bf958ee84666a1bbcffccade543ab91bb /pimd/pim_errors.h
parentf2b72ef4740136a59a5bb81f8a8c654b092f8e54 (diff)
lib: fix capability double resource allocation
Don't let `zprivs_caps_init` allocate resources without checking if there were other caps previously allocated. This fixes a memory leak that happens on daemons that `fork()` and reuse the `<daemon>_di` (see `ldpd`/`lde`/`ldpe` code). Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_errors.h')
0 files changed, 0 insertions, 0 deletions