Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2014-07-22 07:43:20 +0400
committerKenneth Heafield <github@kheafield.com>2014-07-22 07:43:20 +0400
commit62b476cd453a6a69ba43b150b37209fe1c8dad62 (patch)
treeb44befe1842555af80b58b7192f441c02271dca2 /util
parent4f670afe4828035ddda6cd2f5a070bf2ca11054c (diff)
Fix fd leak noticed by Barry Haddow
Diffstat (limited to 'util')
-rw-r--r--util/read_compressed.cc1
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())) {