summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorHuawei LI <lihuawei_zzu@163.com>2022-11-15 19:38:54 +0800
committerAndrew Yourtchenko <ayourtch@gmail.com>2022-11-22 16:13:25 +0000
commit9a8d12d9b317379cfff56fd415a5f7a13bb58453 (patch)
treed4be0593757327bba59fb5de34cf1cdbc2f5e75b /src/plugins
parent99a66f4b7f951267f8a7aaedb388fcc50aa06a19 (diff)
acl: fix set acl-plugin cli unformat free.
Type: fix Signed-off-by: Huawei LI <lihuawei_zzu@163.com> Change-Id: Icb5450f4bd0eaef7684eb7e3816d1d6051e889d7
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/acl/acl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c
index 7e51247cadf..064741c32be 100644
--- a/src/plugins/acl/acl.c
+++ b/src/plugins/acl/acl.c
@@ -2844,6 +2844,7 @@ acl_set_aclplugin_interface_fn (vlib_main_t * vm,
break;
}
+ unformat_free (line_input);
if (~0 == sw_if_index)
return (clib_error_return (0, "invalid interface"));
if (~0 == acl_index)
@@ -2851,7 +2852,6 @@ acl_set_aclplugin_interface_fn (vlib_main_t * vm,
acl_interface_add_del_inout_acl (sw_if_index, is_add, is_input, acl_index);
- unformat_free (line_input);
return (NULL);
}
@@ -2984,6 +2984,7 @@ acl_set_aclplugin_acl_fn (vlib_main_t * vm,
vec_free (rules);
vec_free (tag);
+ unformat_free (line_input);
if (rv)
return (clib_error_return (0, "failed"));