diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2022-12-12 09:48:33 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2022-12-12 10:39:17 -0300 |
| commit | eb23e17fc7683fe2ef712e3b04b7b2a4a175dd3b (patch) | |
| tree | c348863bf958ee84666a1bbcffccade543ab91bb /pathd/path_pcep.c | |
| parent | f2b72ef4740136a59a5bb81f8a8c654b092f8e54 (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 'pathd/path_pcep.c')
0 files changed, 0 insertions, 0 deletions
