From f7b0b50efe92982890a2fc2854a3bf8c1b98eba3 Mon Sep 17 00:00:00 2001 From: ywc689 Date: Fri, 19 Apr 2024 10:16:05 +0800 Subject: [PATCH] ipvs: fix issue #946, a coredump problem when no enough memory on start Signed-off-by: ywc689 --- src/ipvs/ip_vs_conn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ipvs/ip_vs_conn.c b/src/ipvs/ip_vs_conn.c index e8deb0576..ae3b93cb9 100644 --- a/src/ipvs/ip_vs_conn.c +++ b/src/ipvs/ip_vs_conn.c @@ -1221,9 +1221,8 @@ static int conn_term_lcore(void *arg) if (!rte_lcore_is_enabled(rte_lcore_id())) return EDPVS_DISABLED; - conn_flush(); - if (this_conn_tbl) { + conn_flush(); rte_free(this_conn_tbl); this_conn_tbl = NULL; }