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:
Quentin Young 2018-04-17 17:51:48 -04:00
parent 5f504f14a9
commit d64169679f

View File

@ -313,10 +313,11 @@ DEFPY (pbr_policy,
pbrm = pbrm_find(mapname); pbrm = pbrm_find(mapname);
if (!pbr_ifp) { if (!pbr_ifp) {
/* /* we don't want one and we don't have one, so... */
* Some one could have fat fingered the interface if (no)
* name return CMD_SUCCESS;
*/
/* Some one could have fat fingered the interface name */
pbr_ifp = pbr_if_new(ifp); pbr_ifp = pbr_if_new(ifp);
} }