diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-12-18 10:54:36 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-20 08:39:29 -0500 |
| commit | 11bf2747efa862bd51c17e03ad952dd6c05cd189 (patch) | |
| tree | 85dc5d9f3223ec47f10e47b2483131ecceaef328 /lib/netns_linux.c | |
| parent | 4f4728b6789b75858d9b2f1ba6ec0e423fc26cb8 (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
