From 0c4c47ddfb2d90d88045e85702885fef92d8634c Mon Sep 17 00:00:00 2001 From: arehbein Date: Mon, 25 Sep 2023 23:15:52 +0200 Subject: stream_srv: Set io_fd pointer to NULL after freeing Change-Id: Idb815a3e4e51189f9f1f3cceedd570dff9caf401 --- src/stream_srv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stream_srv.c b/src/stream_srv.c index b404604..ca22e1b 100644 --- a/src/stream_srv.c +++ b/src/stream_srv.c @@ -858,6 +858,7 @@ void osmo_stream_srv_destroy(struct osmo_stream_srv *conn) break; case OSMO_STREAM_MODE_OSMO_IO: osmo_iofd_free(conn->iofd); + conn->iofd = NULL; break; default: OSMO_ASSERT(false); -- cgit v1.2.3