From 1756a4f2da9dfe09a094ead84980a5b80871bf4b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 2 Sep 2015 11:47:15 -0400 Subject: fclose /proc/modules when we're done with it --- sway/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sway/main.c') diff --git a/sway/main.c b/sway/main.c index 20738307..e03588ea 100644 --- a/sway/main.c +++ b/sway/main.c @@ -42,10 +42,11 @@ void detect_nvidia() { if (strstr(line, "nvidia")) { fprintf(stderr, "\x1B[1;31mWarning: Proprietary nvidia drivers do NOT support Wayland. Use nouveau.\x1B[0m\n"); free(line); - return; + break; } free(line); } + fclose(f); } int main(int argc, char **argv) { -- cgit v1.2.3