Merge pull request #14803 from Keelan10/fix-babel-leak

babeld: Free IPv4 Memory in interface_reset
This commit is contained in:
Donald Sharp 2023-11-15 09:54:36 -05:00 committed by GitHub
commit 3c4d64d7d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -695,6 +695,9 @@ interface_reset(struct interface *ifp)
babel_ifp->cost,
babel_ifp->ipv4 ? ", IPv4" : "");
if (babel_ifp->ipv4 != NULL)
free(babel_ifp->ipv4);
return 1;
}