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
1 changed files with 2 additions and 1 deletions

View File

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