[Groonga-commit] groonga/groonga at 30c0a99 [master] logical_count: fix a memory leak on initial dynamic column error

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 22 10:15:15 JST 2018


Kouhei Sutou	2018-05-22 10:15:15 +0900 (Tue, 22 May 2018)

  New Revision: 30c0a99172612b535b5ba971e932bbf288500892
  https://github.com/groonga/groonga/commit/30c0a99172612b535b5ba971e932bbf288500892

  Message:
    logical_count: fix a memory leak on initial dynamic column error

  Modified files:
    plugins/sharding/logical_count.rb

  Modified: plugins/sharding/logical_count.rb (+6 -6)
===================================================================
--- plugins/sharding/logical_count.rb    2018-05-22 10:02:21 +0900 (b39d5f859)
+++ plugins/sharding/logical_count.rb    2018-05-22 10:15:15 +0900 (e1f9a94b6)
@@ -126,14 +126,14 @@ module Groonga
           table = shard.table
           return yield(table) if****@filte*****? and @post_filter.nil?
 
-          @dynamic_columns.each_initial do |dynamic_column|
-            if table == shard.table
-              table = table.select_all
+          begin
+            @dynamic_columns.each_initial do |dynamic_column|
+              if table == shard.table
+                table = table.select_all
+              end
+              dynamic_column.apply(table)
             end
-            dynamic_column.apply(table)
-          end
 
-          begin
             yield(table)
           ensure
             table.close if table != shard.table
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180522/de480b75/attachment-0001.htm 



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