[nat/bsc] Fix memory leak of IPA messages...
* The read_msg method is allocating the msgb and we will need to free it once we are done with it.
This commit is contained in:
parent
45d1181a82
commit
a416776ee3
|
@ -401,6 +401,7 @@ static int ipaccess_msc_cb(struct bsc_fd *bfd, unsigned int what)
|
|||
else if (hh->proto == IPAC_PROTO_SCCP)
|
||||
forward_sccp_to_bts(msg);
|
||||
|
||||
talloc_free(msg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -567,6 +568,7 @@ static int ipaccess_bsc_cb(struct bsc_fd *bfd, unsigned int what)
|
|||
/* FIXME: Currently no PONG is sent to the BSC */
|
||||
/* FIXME: Currently no ID ACK is sent to the BSC */
|
||||
forward_sccp_to_msc(bfd, msg);
|
||||
talloc_free(msg);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue