diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-13 16:56:23 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-14 21:47:49 +0100 |
commit | 771e77dff0becd02ce6824f3af4e882605ce20ab (patch) | |
tree | 7a4331baffad4145fb21ade8b4529e2174e915e3 /src/common/oml.c | |
parent | 62579c7a34474eda1be954e2f2bbdaf389d7bc96 (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.c | 2 |
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; } |