commit | aeb45f518675db74135ac5067c15292ba6d4db31 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Jul 29 17:08:28 2010 +0800 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Sat Jul 31 04:09:38 2010 +0800 |
tree | 40a7a95f113706a9677a417f556e120e84acb3f6 | |
parent | 30e1ae923db16c480cf210a29c8befa57a69202b [diff] |
chan_alloc: After freeing set the pointer to NULL.
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index dda5ff2..b061fc7 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c
@@ -272,6 +272,7 @@ 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;