Navigation Menu

Skip to content

Commit

Permalink
Add missing free code on error
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 17, 2015
1 parent 9eccf8b commit 21ec9d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -2856,6 +2856,12 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table,
MRN_SET_BASE_SHARE_KEY(tmp_share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
share = NULL;
if (wrap_key_info)
{
my_free(wrap_key_info);
wrap_key_info = NULL;
}
base_key_info = NULL;
error = MRN_GET_ERROR_NUMBER;
DBUG_RETURN(error);
}
Expand Down

0 comments on commit 21ec9d8

Please sign in to comment.