chan_alloc: After freeing set the pointer to NULL.

This commit is contained in:
Holger Hans Peter Freyther 2010-07-29 17:08:28 +08:00
parent 30e1ae923d
commit aeb45f5186
1 changed files with 1 additions and 0 deletions

View File

@ -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;