]> git.proxmox.com Git - mirror_frr.git/commit
*: Add a hash_clean_and_free() function
authorDonald Sharp <sharpd@nvidia.com>
Tue, 21 Mar 2023 12:54:21 +0000 (08:54 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 21 Mar 2023 12:54:21 +0000 (08:54 -0400)
commitd8bc11a592110abdd14d11dfcb2ce623653ecab5
treeeee3628586497e48192f65326316f0eb91114011
parent2e1ea892220dccb8a4c72e438cb3bbd4cac22b2b
*: Add a hash_clean_and_free() function

Add a hash_clean_and_free() function as well as convert
the code to use it.  This function also takes a double
pointer to the hash to set it NULL.  Also it cleanly
does nothing if the pointer is NULL( as a bunch of
code tested for ).

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
42 files changed:
bgpd/bgp_aspath.c
bgpd/bgp_attr.c
bgpd/bgp_community.c
bgpd/bgp_community_alias.c
bgpd/bgp_ecommunity.c
bgpd/bgp_evpn.c
bgpd/bgp_evpn_mh.c
bgpd/bgp_keepalives.c
bgpd/bgp_lcommunity.c
bgpd/bgp_mac.c
bgpd/bgp_nexthop.c
bgpd/bgp_pbr.c
bgpd/bgp_route.c
bgpd/bgp_updgrp.c
isisd/isis_spf.c
isisd/isis_tx_queue.c
lib/command.c
lib/distribute.c
lib/ferr.c
lib/frrscript.c
lib/hash.c
lib/hash.h
lib/if_rmap.c
lib/northbound.c
lib/thread.c
lib/vrf.c
nhrpd/nhrp_peer.c
ospf6d/ospf6_asbr.c
ospf6d/ospf6_gr_helper.c
ospfd/ospf_asbr.c
ospfd/ospf_gr_helper.c
ospfd/ospf_sr.c
pimd/pim_instance.c
pimd/pim_msdp.c
pimd/pim_rp.c
pimd/pim_vxlan.c
tests/lib/test_srcdest_table.c
vrrpd/vrrp.c
zebra/zebra_l2_bridge_if.c
zebra/zebra_mpls.c
zebra/zebra_router.c
zebra/zebra_vxlan_if.c