diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-11-13 21:17:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 21:17:16 +0200 |
| commit | 04a587f4809e9c82a5f01dfb8b61f3430b45c69b (patch) | |
| tree | 972d078bc2cef1af065f02787dcb6b4400feef21 /pbrd/pbr_zebra.c | |
| parent | c62c0181f07241fa3beb0a3aec3c39401ed8e5c7 (diff) | |
| parent | 3edeaa906660c60d2ecfc3f9f107f420bfacdf30 (diff) | |
Merge pull request #14781 from donaldsharp/frr_memory_leaks_cleanup
Frr memory leaks cleanup
Diffstat (limited to 'pbrd/pbr_zebra.c')
| -rw-r--r-- | pbrd/pbr_zebra.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index 30eaf62902..d47a308ac8 100644 --- a/pbrd/pbr_zebra.c +++ b/pbrd/pbr_zebra.c @@ -419,6 +419,16 @@ void pbr_zebra_init(void) zclient->zebra_connected = zebra_connected; } +void pbr_zebra_destroy(void) +{ + if (zclient == NULL) + return; + + zclient_stop(zclient); + zclient_free(zclient); + zclient = NULL; +} + void pbr_send_rnh(struct nexthop *nhop, bool reg) { uint32_t command; |
