mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Fix prehistoric memory leak. This was affecting the loading of
alignment info from binarised phrase tables. git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3936 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
5059b5ab01
commit
d9d1c9440a
@ -117,6 +117,7 @@ inline void fReadString(FILE* f,std::string& e)
|
||||
}
|
||||
a[s]='\0';
|
||||
e.assign(a);
|
||||
delete[](a);
|
||||
}
|
||||
|
||||
inline size_t fWriteStringVector(FILE* f,const std::vector<std::string>& v)
|
||||
|
Loading…
Reference in New Issue
Block a user