frrouting/pbrd
Aprathi K dd1989129f pbrd: fix memleak during pbr map deletion
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 8ddecd6ae9)
2025-10-28 15:00:00 +00:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
Makefile pbrd: Add PBR to FRR 2018-04-06 13:22:43 -04:00
pbr_debug.c lib: common debug status output 2024-08-27 09:53:02 -04:00
pbr_debug.h lib: common debug status output 2024-08-27 09:53:02 -04:00
pbr_main.c *: expose and clean up 'noreturn' functions 2025-04-24 13:41:23 -04:00
pbr_map.c pbrd: fix memleak during pbr map deletion 2025-10-28 15:00:00 +00:00
pbr_map.h pbrd: Correct Handling of Sequence Deletion 2023-08-20 07:07:36 +04:00
pbr_memory.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_memory.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_nht.c pbrd: fix crash for inconsistent status 2025-08-21 18:12:34 +00:00
pbr_nht.h pbrd: fix crash for inconsistent status 2025-08-21 18:12:34 +00:00
pbr_vrf.c pbrd: Call vrf_terminate on shutdown 2024-08-13 14:11:07 -04:00
pbr_vrf.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_vty.c pbrd: fix memleak during pbr map deletion 2025-10-28 15:00:00 +00:00
pbr_vty.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_zebra.c pbrd: DSCP-only PBR rules not installing due to incorrect family field 2025-08-11 19:55:36 +00:00
pbr_zebra.h pbrd: Cleanup zclient on shutdown 2023-11-13 09:15:43 -05:00
subdir.am build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00