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

This commit is contained in:
Drew DeVault 2015-09-02 11:47:15 -04:00
parent 4ef60e7c09
commit 1756a4f2da

View file

@ -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) {