commit | e1c05ff14b4f633e96be198a5637abf61a5fba8e | [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 | a8dffc119cbf12c45b2a31c9c90114e4bb910867 [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;