vty: fix vsub reference counting: call vlr_subscr_put()

Otherwise, each time the 3GPP TS 44.014 MS test commands (TCH loop)
are invoked, both subscriber_mstest_{close,open} functions add +1
to the subscriber's reference count, but never revoke it.

Change-Id: I0cefa5b5a0cb712080ba2afd322db329f19608e3
This commit is contained in:
Vadim Yanitskiy 2020-07-29 05:47:01 +07:00
parent 72e0f09c03
commit 817ad9054e
1 changed files with 2 additions and 0 deletions

View File

@ -1704,6 +1704,7 @@ DEFUN(subscriber_mstest_close,
gsm0414_tx_close_tch_loop_cmd(msc_a, loop_mode); gsm0414_tx_close_tch_loop_cmd(msc_a, loop_mode);
vlr_subscr_put(vsub, VSUB_USE_VTY);
return CMD_SUCCESS; return CMD_SUCCESS;
} }
@ -1732,6 +1733,7 @@ DEFUN(subscriber_mstest_open,
gsm0414_tx_open_loop_cmd(msc_a); gsm0414_tx_open_loop_cmd(msc_a);
vlr_subscr_put(vsub, VSUB_USE_VTY);
return CMD_SUCCESS; return CMD_SUCCESS;
} }