[libFuzzer] fix missing close on opened file
authorVitaly Buka <vitalybuka@google.com>
Tue, 26 Feb 2019 19:33:00 +0000 (19:33 +0000)
committerVitaly Buka <vitalybuka@google.com>
Tue, 26 Feb 2019 19:33:00 +0000 (19:33 +0000)
commit9b6135bf2a7aa2b9a79818671a5f12a98a41349f
tree8f382ea5209fe1a8ec1b2108f91fa2863beba7f0
parent01706bda5b604cec7f3f478a801f6f99cf9064e6
[libFuzzer] fix missing close on opened file

Summary:
When running the standalone main on a large corpus, I eventually get a
EMFILE error ("Too many open files").

Patch by Paul Chaignon

Reviewers: kcc, vitalybuka

Reviewed By: vitalybuka

Subscribers: lebedev.ri, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D58622

llvm-svn: 354918
compiler-rt/lib/fuzzer/standalone/StandaloneFuzzTargetMain.c