diff options
Diffstat (limited to 'src/afl-forkserver.c')
-rw-r--r-- | src/afl-forkserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index 11b359da..b3b86685 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -253,7 +253,7 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv) { #ifndef HAVE_ARC4RANDOM close(fsrv->dev_urandom_fd); #endif - close(fsrv->plot_file == NULL ? -1 : fileno(fsrv->plot_file)); + if (fsrv->plot_file != NULL) fclose(fsrv->plot_file); /* This should improve performance a bit, since it stops the linker from doing extra work post-fork(). */ |