VRF_CMD_HELP_STR)
{
struct list *input;
+ int ret;
input = list_new();
if (vrf) {
listnode_add(input, yang_vrf);
}
- return nb_cli_rpc("/frr-ripngd:clear-ripng-route", input, NULL);
+ ret = nb_cli_rpc("/frr-ripngd:clear-ripng-route", input, NULL);
+
+ list_delete(&input);
+
+ return ret;
}
void ripng_cli_init(void)