mirror_frr/babeld
Keelan10 419cc234c1 babeld: Free IPv4 Memory in babel_interface_free
Ensure proper memory cleanup by freeing the `babel_ifp->ipv4` when
babel interface is deleted. This prevents memory leaks.

The ASan leak log for reference:

```
***********************************************************************************
Address Sanitizer Error detected in all_protocol_startup.test_all_protocol_startup/r1.asan.babeld.4141

=================================================================
==4141==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 40 byte(s) in 10 object(s) allocated from:
    #0 0x7f1cde6a9b40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x562b8eff328d in babel_interface_address_add babeld/babel_interface.c:112
    #2 0x7f1cde1772cb in zclient_read lib/zclient.c:4425
    #3 0x7f1cde14729c in event_call lib/event.c:1980
    #4 0x7f1cde08a3bf in frr_run lib/libfrr.c:1214
    #5 0x562b8eff481b in main babeld/babel_main.c:202
    #6 0x7f1cdd8acc86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)

SUMMARY: AddressSanitizer: 40 byte(s) leaked in 10 allocation(s).
***********************************************************************************
```

Signed-off-by: Keelan Cannoo <keelan.cannoo@icloud.com>
2023-11-16 02:09:11 +04:00
..
.gitignore babeld: Add missing no commands 2023-01-21 03:33:03 +08:00
babel_errors.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
babel_errors.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
babel_filter.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
babel_filter.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
babel_interface.c babeld: Free IPv4 Memory in babel_interface_free 2023-11-16 02:09:11 +04:00
babel_interface.h Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
babel_main.c babeld: Cleanup vrf data structures on shutdown 2023-11-13 09:16:45 -05:00
babel_main.h *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
babel_zebra.c Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
babel_zebra.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
babeld.c *: Rearrange vrf_bitmap_X api to reduce memory footprint 2023-06-26 14:59:21 -04:00
babeld.h Merge pull request #12837 from donaldsharp/unlikely_routemap 2023-04-04 08:20:25 -04:00
kernel.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
kernel.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
Makefile build: non-recursive babeld & eigrpd 2017-08-04 19:09:14 +02:00
message.c Merge pull request #13672 from zmw12306/AE_zero 2023-06-27 13:18:20 +03:00
message.h babeld: add parse_request_subtlv into parse_packet 2023-04-22 09:01:54 -04:00
neighbour.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
neighbour.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
net.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
net.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
resend.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
resend.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
route.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
route.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
source.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
source.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
subdir.am babeld: Add missing no commands 2023-01-21 03:33:03 +08:00
util.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
util.h babeld: add parse_request_subtlv into parse_packet 2023-04-22 09:01:54 -04:00
xroute.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
xroute.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00