diff options
author | hexcoder- <heiko@hexco.de> | 2020-11-12 23:47:49 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-11-12 23:47:49 +0100 |
commit | 4a4c14c9a926a75a52d3775098211cf3a89e0a7d (patch) | |
tree | aceeaee96594b29796c96e4fd1e96c67b45fd8d7 /examples/defork/forking_target.c | |
parent | 35fd6847fe99c2f7bbec247c71b44babcdcab2b8 (diff) | |
download | afl++-4a4c14c9a926a75a52d3775098211cf3a89e0a7d.tar.gz |
more fixes, leaks and compile errors
Diffstat (limited to 'examples/defork/forking_target.c')
-rw-r--r-- | examples/defork/forking_target.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/defork/forking_target.c b/examples/defork/forking_target.c index 98f6365a..628d23c9 100644 --- a/examples/defork/forking_target.c +++ b/examples/defork/forking_target.c @@ -26,6 +26,7 @@ int main(int argc, char **argv) { FILE *f = fopen(argv[1], "r"); char buf[4096]; fread(buf, 1, 4096, f); + fclose(f); uint32_t offset = buf[100] + (buf[101] << 8); char test_val = buf[offset]; return test_val < 100; |