]> git.puffer.fish Git - mirror/frr.git/commit
lib: Free some memory in scripting subsystem at shutdown
authorDonald Sharp <sharpd@nvidia.com>
Tue, 11 Oct 2022 17:21:03 +0000 (13:21 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 12 Oct 2022 11:39:23 +0000 (07:39 -0400)
commitca28a0f6faef1e0b547966fef49d6987903684b0
tree9a06958d1791e54b0a3787e1959639067b68072e
parent08040409cce0f64b9c78e34584b9b915b2620fb5
lib: Free some memory in scripting subsystem at shutdown

Pre:
staticd: showing active allocations in memory group libfrr
staticd: memstats:  Scripting                     :     16 * (variably sized)
staticd: memstats:  Hash                          :      2 * (variably sized)
staticd: memstats:  Hash Bucket                   :      8 *         32
staticd: memstats:  Hash Index                    :      1 * (variably sized)
staticd: memstats:  Link List                     :      1 *         40
staticd: memstats:  Link Node                     :      1 *         24
staticd: showing active allocations in memory group logging subsystem
staticd: memstats:  log file target               :      1 *         88
staticd: showing active allocations in memory group staticd

Post:
staticd: showing active allocations in memory group libfrr
staticd: showing active allocations in memory group logging subsystem
staticd: memstats:  log file target               :      1 *         88
staticd: showing active allocations in memory group staticd

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/frrscript.c
lib/frrscript.h
lib/libfrr.c