mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +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);
|
header.resize(original + got);
|
||||||
}
|
}
|
||||||
if (header.empty()) {
|
if (header.empty()) {
|
||||||
hold.release();
|
|
||||||
return new Complete();
|
return new Complete();
|
||||||
}
|
}
|
||||||
switch (DetectMagic(&header[0], header.size())) {
|
switch (DetectMagic(&header[0], header.size())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user