summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@yandex-team.ru>2021-09-25 21:00:59 +0500
committerDamjan Marion <dmarion@me.com>2022-03-23 18:25:57 +0000
commit2973350c81a7592b9ff66547b8cd34e5e6c8ccf0 (patch)
treecb0dc562fe023c078974d3196ad2c3ad859f9e6a /src/vlib
parent8486283cd5efb6b3c78428658eed685c5e8469d7 (diff)
vlib: fix memory leak on process nodes reforking
The processes vector leaked on reforking and needs to be freed before recloning from main node processes. Type: fix Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru> Change-Id: Id69bc3fd42e2efacfcd521f98e6e51a9c712fef5
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/threads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c
index dade7bfcb40..3cd8c017d79 100644
--- a/src/vlib/threads.c
+++ b/src/vlib/threads.c
@@ -1056,6 +1056,7 @@ vlib_worker_thread_node_refork (void)
vec_free (old_rt);
+ vec_free (nm_clone->processes);
nm_clone->processes = vec_dup_aligned (nm->processes,
CLIB_CACHE_LINE_BYTES);
nm_clone->node_by_error = nm->node_by_error;