diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-09-02 11:47:15 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-09-02 11:47:15 -0400 |
commit | 1756a4f2da9dfe09a094ead84980a5b80871bf4b (patch) | |
tree | b13511bf22b127777f73a845fa6f55efba39015c /sway/main.c | |
parent | 4ef60e7c094e3d27a068d0ae94d40dbefd38cfac (diff) |
fclose /proc/modules when we're done with it
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |