summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-23 20:27:01 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-24 19:58:07 +0000
commitd2b3399c047c601f6c08ae33368f2020dfb9f935 (patch)
tree6c046c7498985fd9b20126be9cbae72354686591
parent40a91b38ec6c9778fed18376e559631c5abe6c1a (diff)
vty: fix subscr ref count leak in 'subscriber name' cmd
-rw-r--r--openbsc/src/libmsc/vty_interface_layer3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/vty_interface_layer3.c b/openbsc/src/libmsc/vty_interface_layer3.c
index ddec2e393..cd5dfb723 100644
--- a/openbsc/src/libmsc/vty_interface_layer3.c
+++ b/openbsc/src/libmsc/vty_interface_layer3.c
@@ -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;
}