From 1d6fe41d391a595f14eec2cf31e3cfd2a1be61de Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 20 Mar 2024 17:26:02 -0300 Subject: [PATCH] bsdcontrol_feature_set: don't forget to close 'fd'. --- ext/hbsdctl.rb/feature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/hbsdctl.rb/feature.c b/ext/hbsdctl.rb/feature.c index 2322e17..5b0c143 100644 --- a/ext/hbsdctl.rb/feature.c +++ b/ext/hbsdctl.rb/feature.c @@ -62,6 +62,7 @@ bsdcontrol_feature_set(VALUE self, VALUE path, VALUE rbstate) } else { + close(fd); return Qtrue; } }