diff options
author | Kenneth Heafield <github@kheafield.com> | 2014-07-22 07:43:20 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2014-07-22 07:43:20 +0400 |
commit | 62b476cd453a6a69ba43b150b37209fe1c8dad62 (patch) | |
tree | b44befe1842555af80b58b7192f441c02271dca2 | |
parent | 4f670afe4828035ddda6cd2f5a070bf2ca11054c (diff) |
Fix fd leak noticed by Barry Haddow
-rw-r--r-- | util/read_compressed.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/util/read_compressed.cc b/util/read_compressed.cc index e1f4cd7e3..cee98040b 100644 --- a/util/read_compressed.cc +++ b/util/read_compressed.cc @@ -374,7 +374,6 @@ ReadBase *ReadFactory(int fd, uint64_t &raw_amount, const void *already_data, co header.resize(original + got); } if (header.empty()) { - hold.release(); return new Complete(); } switch (DetectMagic(&header[0], header.size())) { |