fclose /proc/modules when we're done with it

master
Drew DeVault 9 years ago
parent 4ef60e7c09
commit 1756a4f2da

@ -42,10 +42,11 @@ void detect_nvidia() {
if (strstr(line, "nvidia")) { if (strstr(line, "nvidia")) {
fprintf(stderr, "\x1B[1;31mWarning: Proprietary nvidia drivers do NOT support Wayland. Use nouveau.\x1B[0m\n"); fprintf(stderr, "\x1B[1;31mWarning: Proprietary nvidia drivers do NOT support Wayland. Use nouveau.\x1B[0m\n");
free(line); free(line);
return; break;
} }
free(line); free(line);
} }
fclose(f);
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {

Loading…
Cancel
Save