mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 13:58:24 +00:00
pbrd: remove pbr-policy resource leak
Removing a non-existent pbr-policy caused a pbr_interface to leak. Coverity #1467829 Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
5f504f14a9
commit
d64169679f
@ -313,10 +313,11 @@ DEFPY (pbr_policy,
|
||||
pbrm = pbrm_find(mapname);
|
||||
|
||||
if (!pbr_ifp) {
|
||||
/*
|
||||
* Some one could have fat fingered the interface
|
||||
* name
|
||||
*/
|
||||
/* we don't want one and we don't have one, so... */
|
||||
if (no)
|
||||
return CMD_SUCCESS;
|
||||
|
||||
/* Some one could have fat fingered the interface name */
|
||||
pbr_ifp = pbr_if_new(ifp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user