mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
[msc/nat] It is better to use msgb_free to free the msgb
msgb_free is currently calling talloc_free but this might change in the future and then this code would break..
This commit is contained in:
@@ -401,7 +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);
|
||||
msgb_free(msg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -568,7 +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);
|
||||
msgb_free(msg);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user