ring: close ring fd on free
authorFelix Fietkau <nbd@nbd.name>
Tue, 14 Nov 2023 11:04:51 +0000 (12:04 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 14 Nov 2023 11:04:51 +0000 (12:04 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ring.c

diff --git a/ring.c b/ring.c
index 7c869f5864077df1b87815c5bf8d49e013622223..ba75ac56849ad8d3776f7f15e3d1f40cfb559216 100644 (file)
--- a/ring.c
+++ b/ring.c
@@ -81,5 +81,6 @@ void client_ring_free(struct client_ring *r)
        udebug_ubus_ring_notify(r, false);
        avl_delete(&rings, &r->node);
        list_del(&r->list);
+       close(r->fd);
        free(r);
 }