pcu_sock.c: Call osmo_fd_unregister() before closing and changing listen_bfd->fd

Change-Id: I48e0411c4cba9897bc04865d22d8f68ed4fe87a2
This commit is contained in:
Philipp Maier 2023-03-20 10:26:07 +01:00
parent 2af29ae92d
commit 10ae64a777
1 changed files with 1 additions and 1 deletions

View File

@ -1011,8 +1011,8 @@ void pcu_sock_exit(struct gsm_bts *bts)
if (conn_bfd->fd > 0)
pcu_sock_close(state);
bfd = &state->listen_bfd;
close(bfd->fd);
osmo_fd_unregister(bfd);
close(bfd->fd);
talloc_free(state);
bts->pcu_state = NULL;
}