mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
vty: fix subscr ref count leak in 'subscriber name' cmd
Change-Id: I3d19518c94a7f302bf108f2ad945983cdc8db0b1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user