aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-13 16:56:23 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-14 21:47:49 +0100
commit771e77dff0becd02ce6824f3af4e882605ce20ab (patch)
tree7a4331baffad4145fb21ade8b4529e2174e915e3 /src/common/oml.c
parent62579c7a34474eda1be954e2f2bbdaf389d7bc96 (diff)
oml: Use talloc_free(ptr) instead of talloc_free(ptr_to_ptr)
tp_merged points to memory allocated by talloc_zero, no need to hand the address of that to talloc itself.
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 9c28e041..a7bcc407 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -615,7 +615,7 @@ static int oml_rx_set_chan_attr(struct gsm_bts_trx_ts *ts, struct msgb *msg)
/* Call into BTS driver to check attribute values */
rc = bts_model_check_oml(bts, foh->msg_type, ts->mo.nm_attr, tp_merged, ts);
if (rc < 0) {
- talloc_free(&tp_merged);
+ talloc_free(tp_merged);
/* FIXME: Send NACK */
return rc;
}