From 0d194268fb454bc0d70f7fe5c278a70a65f0adea Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 1 May 2013 08:36:19 +0200 Subject: 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. --- src/osmo-bts-sysmo/l1_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3