about summary refs log tree commit diff
path: root/examples/defork/forking_target.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-11-12 23:47:49 +0100
committerhexcoder- <heiko@hexco.de>2020-11-12 23:47:49 +0100
commit4a4c14c9a926a75a52d3775098211cf3a89e0a7d (patch)
treeaceeaee96594b29796c96e4fd1e96c67b45fd8d7 /examples/defork/forking_target.c
parent35fd6847fe99c2f7bbec247c71b44babcdcab2b8 (diff)
downloadafl++-4a4c14c9a926a75a52d3775098211cf3a89e0a7d.tar.gz
more fixes, leaks and compile errors
Diffstat (limited to 'examples/defork/forking_target.c')
-rw-r--r--examples/defork/forking_target.c1
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;