Navigation Menu

Skip to content

Commit

Permalink
Remove needless strdup
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 9, 2012
1 parent f88d618 commit 8b3aefb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ha_mroonga.cc
Expand Up @@ -727,8 +727,10 @@ static void mrn_default_parser_update(THD *thd, struct st_mysql_sys_var *var,

#ifdef MRN_NEED_FREE_STRING_MEMALLOC_PLUGIN_VAR
my_free(*old_value_ptr, MYF(0));
#endif
*old_value_ptr = my_strdup(new_value, MYF(MY_WME));
#else
*old_value_ptr = (char *)new_value;
#endif
}
grn_ctx_fin(&ctx);

Expand Down

0 comments on commit 8b3aefb

Please sign in to comment.