mirror of
https://github.com/swaywm/sway
synced 2024-11-18 04:33:59 +01:00
fclose /proc/modules when we're done with it
This commit is contained in:
parent
4ef60e7c09
commit
1756a4f2da
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user