fixeria has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31895 )
Change subject: ipa: Call osmo_fd_unregister() before closing and changing bfd->fd ......................................................................
ipa: Call osmo_fd_unregister() before closing and changing bfd->fd
Change-Id: I8bfafe5de3cf194a71fb755c642121cec817aaa3 --- M src/input/ipa.c 1 file changed, 10 insertions(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified fixeria: Looks good to me, approved
diff --git a/src/input/ipa.c b/src/input/ipa.c index 94e7e5a..2235b39 100644 --- a/src/input/ipa.c +++ b/src/input/ipa.c @@ -561,10 +561,10 @@ * calls again into this destructor */ if (conn->ofd.fd == -1) return; + osmo_fd_unregister(&conn->ofd); close(conn->ofd.fd); conn->ofd.fd = -1; msgb_free(conn->pending_msg); - osmo_fd_unregister(&conn->ofd); if (conn->closed_cb) conn->closed_cb(conn); talloc_free(conn);