1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* encoding.c (enc_alias_internal): use xfree instead of free.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-12-02 17:40:10 +00:00
parent 7911d42f1b
commit c99a895e28
2 changed files with 5 additions and 1 deletions

View file

@ -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().

View file

@ -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;