Page MenuHomeFreeBSD

route/fib_algo: Free leaked radix_masks in radix_lockless
ClosedPublic

Authored by pouria on Sat, Aug 22, 8:46 PM.
Tags
None
Referenced Files
F170529171: D59112.id184766.diff
Sat, Sep 5, 6:26 AM
Unknown Object (File)
Sat, Sep 5, 1:50 AM
Unknown Object (File)
Sat, Sep 5, 12:15 AM
Unknown Object (File)
Sat, Sep 5, 12:07 AM
Unknown Object (File)
Fri, Sep 4, 8:37 PM
Unknown Object (File)
Fri, Sep 4, 7:50 PM
Unknown Object (File)
Fri, Sep 4, 3:38 PM
Unknown Object (File)
Fri, Sep 4, 3:30 PM
Subscribers

Details

Summary

radix_lockless algorithm creates its own radix tree and
allocates its own radix_masks by directly calling rnh_addaddr().
However, during destruction, it only frees the radix_tree without
freeing its allocated radix_masks.
Fix the leak by calling rn_delete() during radix_destroy().

PR: 297339
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable