mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
*: Remove tests for some XFREE-family functions
XFREE() covers that. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
7b26b14467
commit
8fa77bc6f4
@ -132,8 +132,7 @@ static void assegment_free(struct assegment *seg)
|
|||||||
if (!seg)
|
if (!seg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (seg->as)
|
assegment_data_free(seg->as);
|
||||||
assegment_data_free(seg->as);
|
|
||||||
memset(seg, 0xfe, sizeof(struct assegment));
|
memset(seg, 0xfe, sizeof(struct assegment));
|
||||||
XFREE(MTYPE_AS_SEG, seg);
|
XFREE(MTYPE_AS_SEG, seg);
|
||||||
|
|
||||||
|
@ -209,13 +209,8 @@ static void bgp_debug_list_free(struct list *list)
|
|||||||
if (list)
|
if (list)
|
||||||
for (ALL_LIST_ELEMENTS(list, node, nnode, filter)) {
|
for (ALL_LIST_ELEMENTS(list, node, nnode, filter)) {
|
||||||
listnode_delete(list, filter);
|
listnode_delete(list, filter);
|
||||||
|
prefix_free(&filter->p);
|
||||||
if (filter->p)
|
XFREE(MTYPE_BGP_DEBUG_STR, filter->host);
|
||||||
prefix_free(&filter->p);
|
|
||||||
|
|
||||||
if (filter->host)
|
|
||||||
XFREE(MTYPE_BGP_DEBUG_STR, filter->host);
|
|
||||||
|
|
||||||
XFREE(MTYPE_BGP_DEBUG_FILTER, filter);
|
XFREE(MTYPE_BGP_DEBUG_FILTER, filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
7
lib/if.c
7
lib/if.c
@ -887,11 +887,8 @@ void connected_free(struct connected **connected)
|
|||||||
{
|
{
|
||||||
struct connected *ptr = *connected;
|
struct connected *ptr = *connected;
|
||||||
|
|
||||||
if (ptr->address)
|
prefix_free(&ptr->address);
|
||||||
prefix_free(&ptr->address);
|
prefix_free(&ptr->destination);
|
||||||
|
|
||||||
if (ptr->destination)
|
|
||||||
prefix_free(&ptr->destination);
|
|
||||||
|
|
||||||
XFREE(MTYPE_CONNECTED_LABEL, ptr->label);
|
XFREE(MTYPE_CONNECTED_LABEL, ptr->label);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user