]> git.puffer.fish Git - matthieu/frr.git/commit
lib: remove nb/yang memory cleanup when daemonizing
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 17 Mar 2024 20:44:28 +0000 (22:44 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 17 May 2024 10:23:11 +0000 (10:23 +0000)
commit790fae0ca9a0d980f4e7c840b50f504a88acab54
treea369e69268d8912446bfc0787957ac4096d9de11
parent653974ef16b409a36a009005da7762bf3da90636
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>
(cherry picked from commit a564710c34bdae8a0f0630f50b5718f0757d8edc)
lib/libfrr.c