From: Felix Fietkau Date: Tue, 14 Nov 2023 11:04:51 +0000 (+0100) Subject: ring: close ring fd on free X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e3f5fcb44bbd25b1909fa587c042d6492dcbb248;p=project%2Fudebug.git ring: close ring fd on free Signed-off-by: Felix Fietkau --- diff --git a/ring.c b/ring.c index 7c869f5..ba75ac5 100644 --- 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); }