pespin has uploaded this change for review. ( 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(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/95/31895/1 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); -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31895 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: I8bfafe5de3cf194a71fb755c642121cec817aaa3 Gerrit-Change-Number: 31895 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pes...@sysmocom.de> Gerrit-MessageType: newchange