diff --git a/system/setlogmask/setlogmask.c b/system/setlogmask/setlogmask.c index 009c915b6..83c091741 100644 --- a/system/setlogmask/setlogmask.c +++ b/system/setlogmask/setlogmask.c @@ -73,6 +73,7 @@ static int print_channels(void) memset(info, 0, sizeof(info)); ret = ioctl(fd, SYSLOGIOC_GETCHANNELS, &info); + close(fd); if (ret < 0) { perror("Failed to get channels");