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: I0cefa5b5a0cb712080ba2afd322db329f19608e3changes/27/19427/2
parent
72e0f09c03
commit
817ad9054e
|
@ -1704,6 +1704,7 @@ DEFUN(subscriber_mstest_close,
|
|||
|
||||
gsm0414_tx_close_tch_loop_cmd(msc_a, loop_mode);
|
||||
|
||||
vlr_subscr_put(vsub, VSUB_USE_VTY);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -1732,6 +1733,7 @@ DEFUN(subscriber_mstest_open,
|
|||
|
||||
gsm0414_tx_open_loop_cmd(msc_a);
|
||||
|
||||
vlr_subscr_put(vsub, VSUB_USE_VTY);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue