diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-23 22:17:48 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-24 18:14:18 +0100 |
commit | 3c10fb92c193d3b28537cfe138702693a382e97d (patch) | |
tree | 57a73cf2dc5020ed8a3623ca272b47dc547ce297 /pimd/pim_iface.c | |
parent | pimd: move iface lib initialization to a proper place (diff) | |
download | frr-3c10fb92c193d3b28537cfe138702693a382e97d.tar.xz frr-3c10fb92c193d3b28537cfe138702693a382e97d.zip |
pimd: fix interface info memory leak
When the interface is deleted from the system, its info must be freed.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'pimd/pim_iface.c')
-rw-r--r-- | pimd/pim_iface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 6727be01b..72e04460d 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -1710,6 +1710,9 @@ static int pim_if_new_hook(struct interface *ifp) static int pim_if_delete_hook(struct interface *ifp) { + if (ifp->info) + pim_if_delete(ifp); + return 0; } |