aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 17:08:28 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-31 04:09:38 +0800
commitaeb45f518675db74135ac5067c15292ba6d4db31 (patch)
tree40a7a95f113706a9677a417f556e120e84acb3f6 /openbsc/src
parent30e1ae923db16c480cf210a29c8befa57a69202b (diff)
chan_alloc: After freeing set the pointer to NULL.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/chan_alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index dda5ff20d..b061fc798 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -272,6 +272,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type)
if (lchan->conn) {
LOGP(DRLL, LOGL_ERROR, "lchan->conn should be NULL.\n");
subscr_con_free(lchan->conn);
+ lchan->conn = NULL;
}
} else {
struct challoc_signal_data sig;