diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 17:40:10 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 17:40:10 +0000 |
commit | c99a895e28c8dcf8c359720ea0d1b8c9887bedf4 (patch) | |
tree | d161aef517690dbe030bac1b889a405c177bde4f /encoding.c | |
parent | 7911d42f1b3b4d6fdaab7a70d69c7bb1351af06c (diff) | |
download | ruby-c99a895e28c8dcf8c359720ea0d1b8c9887bedf4.tar.gz |
* 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
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |