mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-24 18:10:45 +00:00
lib: remove nb/yang memory cleanup when daemonizing
We're not calling any other termination functions to free allocated memory when daemonizing except these two. There's no reason for such an exception, and because of these calls we have the following libyang warnings every time FRR is started: ``` MGMTD: libyang: String "15" not freed from the dictionary, refcount 2 MGMTD: libyang: String "200" not freed from the dictionary, refcount 2 MGMTD: libyang: String "mrib-then-urib" not freed from the dictionary, refcount 2 MGMTD: libyang: String "1000" not freed from the dictionary, refcount 2 MGMTD: libyang: String "10" not freed from the dictionary, refcount 2 MGMTD: libyang: String "5" not freed from the dictionary, refcount 2 ``` Remove these calls to get rid of the unnecessary warnings. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
387a035b66
commit
a564710c34
@ -957,8 +957,6 @@ static void frr_daemonize(void)
|
||||
}
|
||||
|
||||
close(fds[1]);
|
||||
nb_terminate();
|
||||
yang_terminate();
|
||||
frr_daemon_wait(fds[0]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user