Permalink
Browse files

Fix #413, rt variant

  • Loading branch information...
klirichek committed Sep 4, 2018
1 parent 517b9e8 commit 31db660f378541aa0d1e7cf2e7209bb0a1f47fd8
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/sphinxrt.cpp
@@ -6006,8 +6006,16 @@ bool RtIndex_t::EarlyReject ( CSphQueryContext * pCtx, CSphMatch & tMatch ) cons
CopyDocinfo ( tMatch, pRow );
}
pCtx->CalcFilter ( tMatch ); // FIXME!!! leak of filtered STRING_PTR
return pCtx->m_pFilter ? !pCtx->m_pFilter->Eval ( tMatch ) : false;
pCtx->CalcFilter ( tMatch );
if ( !pCtx->m_pFilter )
return false;
if ( !pCtx->m_pFilter->Eval ( tMatch ) )
{
pCtx->FreeDataFilter ( tMatch );
return true;
}
return false;
}

0 comments on commit 31db660

Please sign in to comment.