log: close in cleanup stage
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 13 Nov 2021 17:22:53 +0000 (09:22 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 11 Feb 2022 18:49:22 +0000 (19:49 +0100)
commit5f4eb82f3c73d3bd192ad4eb3b448a07a6810a7e
tree0a7ce276210dec70a4d70d90423cb27ea6b84c1e
parent985571b6b41ec49552b3d91c20060236c7c0fecb
log: close in cleanup stage

When application calls rte_eal_cleanup on shutdown,
the DPDK log should be closed and cleaned up.

This helps reduce false reports from tools like ASAN
and valgrind that track memory leaks.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/eal/common/eal_common_log.c
lib/eal/common/eal_private.h
lib/eal/linux/eal.c
lib/eal/linux/eal_log.c