mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
Fix fd leak noticed by Barry Haddow
This commit is contained in:
parent
4f670afe48
commit
62b476cd45
@ -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())) {
|
||||
|
Loading…
Reference in New Issue
Block a user