CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/12/03 07:58:14

Modified files:
        usr.sbin/bgpd  : rde.h rde_adjout.c rde_prefix.c 

Log message:
Fix memory leak of the adjout array in pt_free

pt_free needs to free the adjout array, do this with adjout_prefix_free
which takes care of accounting and kind of handles cases where the removed
prefixes are actually still active -- in this case peer prefix counts will
be off.

Create a little helper (adjout_prefix_destroy) to take care of clearing
out a adjout_prefix.

Based on a report by Nate P nate.pusnik gmail com
OK tb@

Reply via email to