mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
wrong memory allocation request for document marker
This commit is contained in:
parent
904afd175d
commit
77685d7fd9
@ -93,7 +93,7 @@ void SuffixArray::Create(const string& fileName )
|
|||||||
CheckAllocation(m_sentenceLength != NULL, "m_sentenceLength");
|
CheckAllocation(m_sentenceLength != NULL, "m_sentenceLength");
|
||||||
if (m_useDocument) {
|
if (m_useDocument) {
|
||||||
m_document = (INDEX*) calloc( sizeof( INDEX ), m_documentCount );
|
m_document = (INDEX*) calloc( sizeof( INDEX ), m_documentCount );
|
||||||
m_documentName = (INDEX*) calloc( sizeof( char ), m_documentCount );
|
m_documentName = (INDEX*) calloc( sizeof( INDEX ), m_documentCount );
|
||||||
m_documentNameBuffer = (char*) calloc( sizeof( char ), m_documentNameLength );
|
m_documentNameBuffer = (char*) calloc( sizeof( char ), m_documentNameLength );
|
||||||
CheckAllocation(m_document != NULL, "m_document");
|
CheckAllocation(m_document != NULL, "m_document");
|
||||||
CheckAllocation(m_documentName != NULL, "m_documentName");
|
CheckAllocation(m_documentName != NULL, "m_documentName");
|
||||||
|
Loading…
Reference in New Issue
Block a user