Skip to content

Commit

Permalink
Merge pull request #14803 from Keelan10/fix-babel-leak
Browse files Browse the repository at this point in the history
babeld: Free IPv4 Memory in interface_reset
  • Loading branch information
donaldsharp authored Nov 15, 2023
2 parents 43290b5 + 4937a4e commit 3c4d64d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions babeld/babel_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3c4d64d

Please sign in to comment.