mirror of
https://github.com/FRRouting/frr.git
synced 2026-01-16 23:14:01 +00:00
1. Free memeory pbrms->src, before free is done for pbrms
2. Free lists pbrm->incoming and pbrm->seqnumbers
before pbrm is deleted.
3. Change pbr_map_interface_list_delete to only free up
memory for pbr_map_interface.
pbr_map_interface_list_delete at present, sends the (pbr_map_seq, interface) delete to
zebra and then frees up pbr_map_interface memory.
This zebra update is redundent, since (pbr_map_seq, interface)
delete is sent to zebra for all interfaces associated with pbr map
when a particular sequence is deleted from pbr map.
The pbr_map_interface_list_delete
will be invoked only when list_delete() is called
for pbrm->incoming. As list_delete(pbrm->incoming) is absent in existing
code, pbr_map_interface_list_delete does not have any coverage, so
this change should not impact any functionality.
Signed-off-by: Aprathi K <aprathik@nvidia.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| pbr_debug.c | ||
| pbr_debug.h | ||
| pbr_main.c | ||
| pbr_map.c | ||
| pbr_map.h | ||
| pbr_memory.c | ||
| pbr_memory.h | ||
| pbr_nht.c | ||
| pbr_nht.h | ||
| pbr_vrf.c | ||
| pbr_vrf.h | ||
| pbr_vty.c | ||
| pbr_vty.h | ||
| pbr_zebra.c | ||
| pbr_zebra.h | ||
| subdir.am | ||