fix: wrong free

This commit is contained in:
ceriel
1987-07-16 16:08:13 +00:00
parent 68265148d7
commit 1148da3047
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ FILE *fp;
break;
}
}
free(fp);
if (fp != &_stdin && fp != &_stdout && fp != &_stderr) free(fp);
return NULL;
}