aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-22 23:40:47 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-22 23:40:47 +0100
commitb36fd0b912bb175ac6237f2ec450bf561680a0ad (patch)
treea526ab407bf4234441abafe58072ab53f3cc1790
parentfb3e20b4b2a38cd09bf4ed7687dacd3ab6f15d44 (diff)
osmo_stream_cli_destroy: call talloc_free on right object
'link' turns out to be a really bad variable name, as the symbol resolves to the global link(2)...
-rw-r--r--src/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c
index 21c99c7..33b2170 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -272,7 +272,7 @@ osmo_stream_cli_set_read_cb(struct osmo_stream_cli *cli,
void osmo_stream_cli_destroy(struct osmo_stream_cli *cli)
{
- talloc_free(link);
+ talloc_free(cli);
}
int osmo_stream_cli_open(struct osmo_stream_cli *cli)