[Groonga-commit] groonga/groonga at 8224cb7 [master] logical_select: fix a memory leak

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Aug 17 17:34:21 JST 2015


Kouhei Sutou	2015-08-17 17:34:21 +0900 (Mon, 17 Aug 2015)

  New Revision: 8224cb786412c35c06cb0799ef6b3d3d95affd76
  https://github.com/groonga/groonga/commit/8224cb786412c35c06cb0799ef6b3d3d95affd76

  Message:
    logical_select: fix a memory leak
    
    Empty result set should be closed immediately.

  Modified files:
    plugins/sharding/logical_select.rb

  Modified: plugins/sharding/logical_select.rb (+4 -1)
===================================================================
--- plugins/sharding/logical_select.rb    2015-08-17 17:02:06 +0900 (1829429)
+++ plugins/sharding/logical_select.rb    2015-08-17 17:34:21 +0900 (409e9ab)
@@ -617,7 +617,10 @@ module Groonga
         end
 
         def add_result_set(result_set)
-          return if result_set.empty?
+          if result_set.empty?
+            result_set.close
+            return
+          end
 
           if @sort_keys.empty?
             @result_sets << result_set
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index