vty: fix subscr ref count leak in 'subscriber name' cmd

Change-Id: I3d19518c94a7f302bf108f2ad945983cdc8db0b1
This commit is contained in:
Neels Hofmeyr 2017-02-23 20:27:01 +01:00
parent 40a91b38ec
commit d2b3399c04
1 changed files with 1 additions and 0 deletions

View File

@ -586,6 +586,7 @@ DEFUN(ena_subscr_name,
vty_out(vty,
"%% NAME is too long, max. %zu characters are allowed%s",
sizeof(subscr->name)-1, VTY_NEWLINE);
subscr_put(subscr);
return CMD_WARNING;
}