mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 10:46:22 +00:00
zebra: Fix memory leak on re-enter case
When we have a case where the user re-enters the same ip route line, we need to delete the memory we just malloc'ed. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
1af416bc25
commit
af5849b662
@ -249,6 +249,9 @@ static int zebra_static_route_holdem(struct zebra_vrf *zvrf,
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XFREE(MTYPE_STATIC_ROUTE, shr->nhvrf_name);
|
||||||
|
XFREE(MTYPE_STATIC_ROUTE, shr->vrf_name);
|
||||||
|
XFREE(MTYPE_STATIC_ROUTE, shr);
|
||||||
/*
|
/*
|
||||||
* If a person enters the same line again
|
* If a person enters the same line again
|
||||||
* we need to silently accept it
|
* we need to silently accept it
|
||||||
|
Loading…
Reference in New Issue
Block a user