summaryrefslogtreecommitdiff
path: root/lib/netns_linux.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-12-18 10:54:36 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-12-20 08:39:29 -0500
commit11bf2747efa862bd51c17e03ad952dd6c05cd189 (patch)
tree85dc5d9f3223ec47f10e47b2483131ecceaef328 /lib/netns_linux.c
parent4f4728b6789b75858d9b2f1ba6ec0e423fc26cb8 (diff)
bgpd: When allocating prefix, free it when we are already tracking it
Several functions had this pattern: a) p = prefix_new b) if (already_tracking) return Let's just stop allocating the prefix and use a prefix on the stack, especially since the function used to hold the value actually copies it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/netns_linux.c')
0 files changed, 0 insertions, 0 deletions