From f2174ef1a21c5d213a951f210130f42359933eef Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 17 Mar 2017 00:16:08 +0100 Subject: stream: When destroying, make sure to kill reconnect timer if osmo_stream_cli_destroy() is called while the reconnect timer is running, we would end up in a crash. Change-Id: If6597130f472f1e2b8d9682002250ecd54675bb0 --- src/stream.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/stream.c b/src/stream.c index 93de3b7..2fca7be 100644 --- a/src/stream.c +++ b/src/stream.c @@ -295,6 +295,7 @@ osmo_stream_cli_set_read_cb(struct osmo_stream_cli *cli, void osmo_stream_cli_destroy(struct osmo_stream_cli *cli) { + osmo_timer_del(&cli->timer); talloc_free(cli); } -- cgit v1.2.1