From 2973350c81a7592b9ff66547b8cd34e5e6c8ccf0 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Sat, 25 Sep 2021 21:00:59 +0500 Subject: 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 Change-Id: Id69bc3fd42e2efacfcd521f98e6e51a9c712fef5 --- src/vlib/threads.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit 1.2.3-korg