aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/nat/bsc_nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 8dd42dc31..179923605 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -150,6 +150,7 @@ static int ipaccess_msc_cb(struct bsc_fd *bfd, unsigned int what)
*/
static void remove_bsc_connection(struct bsc_connection *connection)
{
+ bsc_unregister_fd(&connection->bsc_fd);
llist_del(&connection->list_entry);
talloc_free(connection);
}