aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface_layer3.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-10-27 12:47:06 +0100
committerHarald Welte <laforge@gnumonks.org>2009-11-06 23:33:59 +0900
commite33966cec2a1b246114026b2c5eb19555a31d303 (patch)
tree572b0e6ecf5b8f3ee4ed0960ea7374d39e7a4fb0 /openbsc/src/vty_interface_layer3.c
parent9aa6fd90ca06d1d9b596f5ab97223d0805fa96de (diff)
vty: Do not leak the gsm_subscriber
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r--openbsc/src/vty_interface_layer3.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c
index 032e16fc..87c1c85f 100644
--- a/openbsc/src/vty_interface_layer3.c
+++ b/openbsc/src/vty_interface_layer3.c
@@ -1,5 +1,6 @@
/* OpenBSC interface to quagga VTY */
/* (C) 2009 by Harald Welte <laforge@gnumonks.org>
+ * (C) 2009 by Holger Hans Peter Freyther
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
@@ -88,6 +89,7 @@ DEFUN(cfg_subscr,
return CMD_WARNING;
}
+ /* vty_go_parent should put this subscriber */
vty->index = subscr;
vty->node = SUBSCR_NODE;
@@ -112,6 +114,7 @@ DEFUN(show_subscr,
return CMD_WARNING;
}
subscr_dump_vty(vty, subscr);
+ subscr_put(subscr);
return CMD_SUCCESS;
}
@@ -218,6 +221,7 @@ DEFUN(sms_send_ext,
b = argv_to_buffer(argc, argv, 1);
rc = _send_sms_buffer(receiver, b);
buffer_free(b);
+ subscr_put(receiver);
return rc;
}
@@ -238,6 +242,7 @@ DEFUN(sms_send_imsi,
b = argv_to_buffer(argc, argv, 1);
rc = _send_sms_buffer(receiver, b);
buffer_free(b);
+ subscr_put(receiver);
return rc;
}