Navigation Menu

Skip to content

Commit

Permalink
refactoring ha_groonga::free_expr().
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuro IKEDA committed Aug 18, 2009
1 parent cc8f6b3 commit 3abb088
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ha_groonga.cc
Expand Up @@ -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)
Expand Down

0 comments on commit 3abb088

Please sign in to comment.