diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | encoding.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Dec 3 01:52:43 2010 NARUSE, Yui <naruse@ruby-lang.org> + + * encoding.c (enc_alias_internal): use xfree instead of free. + Thu Dec 2 23:52:26 2010 URABE Shyouhei <shyouhei@ruby-lang.org> * NEWS: entry for ruby_vm_at_exit(). diff --git a/encoding.c b/encoding.c index db0f5c8ae6..70cc65ba3b 100644 --- a/encoding.c +++ b/encoding.c @@ -445,7 +445,7 @@ enc_alias_internal(const char *alias, int idx) { char *name = strdup(alias); if (st_insert(enc_table.names, (st_data_t)name, (st_data_t)idx)) { - free(name); + xfree(name); return NULL; } return name; |