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:
parent
1a345ca48f
commit
8effcb747d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue