[Groonga-commit] groonga/groonga [master] Fixed one more cursor leak on suggest learner.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 6日 (木) 15:55:07 JST


Tasuku SUENAGA a.k.a. gunyarakun	2011-01-06 06:55:07 +0000 (Thu, 06 Jan 2011)

  New Revision: 4de85f2b1e29c1a217c080930a1d1128650b55b7

  Log:
    Fixed one more cursor leak on suggest learner.

  Modified files:
    src/suggest/groonga_suggest_learner.c

  Modified: src/suggest/groonga_suggest_learner.c (+2 -0)
===================================================================
--- src/suggest/groonga_suggest_learner.c    2011-01-06 06:50:00 +0000 (8fe464d)
+++ src/suggest/groonga_suggest_learner.c    2011-01-06 06:55:07 +0000 (fbced5f)
@@ -305,9 +305,11 @@ send_handler(void *zmq_send_sock, grn_ctx *ctx)
 
                 msgpack_sbuffer_destroy(&sbuf);
               }
+              grn_table_cursor_close(ctx, tc);
             }
           }
         }
+        grn_obj_unlink(ctx, table);
       }
     }
     grn_table_cursor_close(ctx, cur);




Groonga-commit メーリングリストの案内
Back to archive index