libmsc: Set the "trans->conn" to NULL to catch invalid usage

Make finding use-after-free more easy and set it to NULL.
This commit is contained in:
Holger Hans Peter Freyther 2013-12-27 18:07:23 +01:00
parent 1a345ca48f
commit 8effcb747d
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ void trans_free(struct gsm_trans *trans)
if (trans->conn)
msc_release_connection(trans->conn);
trans->conn = NULL;
talloc_free(trans);
}