]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: fix interface info memory leak
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 23 Jan 2022 21:17:48 +0000 (00:17 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 24 Jan 2022 17:14:18 +0000 (20:14 +0300)
When the interface is deleted from the system, its info must be freed.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
pimd/pim_iface.c

index 6727be01bcaba1978b984c4c37799cb9d5f46bd5..72e04460d5fda81495986fb3cff66405d4f08b21 100644 (file)
@@ -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;
 }