Permalink
Browse files

Fix leak of AOT internal type outside

  • Loading branch information...
klirichek committed Aug 31, 2018
1 parent 51f57c3 commit fd841a472b472280c93f4af3506851d19f6adc45
Showing with 3 additions and 4 deletions.
  1. +2 −2 src/sphinxaot.cpp
  2. +1 −2 src/sphinxstem.h
@@ -1740,10 +1740,10 @@ class CSphAotTokenizer : public CSphAotTokenizerTmpl
};
CSphTokenFilter * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask )
ISphTokenizer * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask )
{
assert ( uLangMask!=0 );
CSphRefcountedPtr<CSphTokenFilter> pDerivedTokenizer;
CSphRefcountedPtr<ISphTokenizer> pDerivedTokenizer;
for ( int i=AOT_BEGIN; i<AOT_LENGTH; ++i )
{
if ( uLangMask & (1UL<<i) )
@@ -85,8 +85,7 @@ const CSphNamedInt & sphAotDictinfo ( int iLang );
/// create token filter that returns all morphological hypotheses
/// NOTE, takes over wordforms from pDict, in AOT case they must be handled by the fitler
class CSphTokenFilter;
CSphTokenFilter * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask );
ISphTokenizer * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask );
/// free lemmatizers on shutdown
void sphAotShutdown ();

0 comments on commit fd841a4

Please sign in to comment.