[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] refactoring ha_groonga::free_expr().

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:47:53 JST 2012


Tetsuro IKEDA	2009-08-18 16:31:01 +0900 (Tue, 18 Aug 2009)

  New Revision: 3abb088d1f8f02338165f951592fdbdd9d76bf5f
  https://github.com/mroonga/mroonga/commit/3abb088d1f8f02338165f951592fdbdd9d76bf5f

  Log:
    refactoring ha_groonga::free_expr().

  Modified files:
    ha_groonga.cc

  Modified: ha_groonga.cc (+3 -6)
===================================================================
--- ha_groonga.cc    2009-08-17 19:00:23 +0900 (88cb14b)
+++ ha_groonga.cc    2009-08-18 16:31:01 +0900 (4f7a805)
@@ -956,14 +956,11 @@ int ha_groonga::make_expr(Item *item, mrn_expr **expr)
 
 void ha_groonga::free_expr(mrn_expr *expr)
 {
-  if (expr)
+  if (expr && expr->next)
   {
-    if (expr->next)
-    {
-      free_expr(expr->next);
-    }
-    free(expr);
+    free_expr(expr->next);
   }
+  free(expr);
 }
 
 int ha_groonga::check_other_conditions(mrn_cond *cond, THD *thd)
-------------- next part --------------
HTML����������������������������...
Download 



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