summaryrefslogtreecommitdiffstats
path: root/src/vnet/policer/policer_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/policer/policer_api.c')
-rw-r--r--src/vnet/policer/policer_api.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/policer/policer_api.c b/src/vnet/policer/policer_api.c
index 1382d17e2de..8c958e79676 100644
--- a/src/vnet/policer/policer_api.c
+++ b/src/vnet/policer/policer_api.c
@@ -67,7 +67,10 @@ vl_api_policer_add_del_t_handler (vl_api_policer_add_del_t * mp)
error = policer_add_del (vm, name, &cfg, &policer_index, mp->is_add);
if (error)
- rv = VNET_API_ERROR_UNSPECIFIED;
+ {
+ rv = VNET_API_ERROR_UNSPECIFIED;
+ clib_error_free (error);
+ }
/* *INDENT-OFF* */
REPLY_MACRO2(VL_API_POLICER_ADD_DEL_REPLY,