diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-01 08:36:19 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-01 19:03:43 +0200 |
commit | 0d194268fb454bc0d70f7fe5c278a70a65f0adea (patch) | |
tree | aca3ad63b30e9ee7c75d2dda1c918c7a3014dfc4 /src | |
parent | bd3250a456c48ae61f62d1c28f4a241ec79ff4b6 (diff) |
sysmobts: Use msgb_free instead of talloc_free to free the message
Currently msgb_free is calling talloc_free but we might introduce
a msgb pool in the future. So make sure to use the designated free
method for the msgb.
Diffstat (limited to 'src')
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index b4b406a3..f9aa7eb8 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -1035,7 +1035,7 @@ static int activate_rf_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp) oml_mo_state_chg(&trx->bb_transc.mo, NM_OPSTATE_DISABLED, NM_AVSTATE_OFF_LINE); } - talloc_free(resp); + msgb_free(resp); return 0; } @@ -1140,7 +1140,7 @@ static int reset_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp) LOGP(DL1C, LOGL_NOTICE, "Rx L1-RESET.conf (status=%s)\n", get_value_string(femtobts_l1status_names, status)); - talloc_free(resp); + msgb_free(resp); /* If we're coming out of reset .. */ if (status != GsmL1_Status_Success) { |