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
F171670755: D59112.id184743.diff
Sat, Sep 12, 2:02 PM
F171657813: D59112.id184766.diff
Sat, Sep 12, 12:03 PM
F171634893: D59112.id184743.diff
Sat, Sep 12, 8:13 AM
F171628860: D59112.id.diff
Sat, Sep 12, 7:18 AM
Unknown Object (File)
Thu, Sep 10, 5:29 PM
Unknown Object (File)
Thu, Sep 10, 4:08 AM
Unknown Object (File)
Wed, Sep 9, 6:39 PM
Unknown Object (File)
Tue, Sep 8, 9:16 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