summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 17:40:10 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 17:40:10 +0000
commitc99a895e28c8dcf8c359720ea0d1b8c9887bedf4 (patch)
treed161aef517690dbe030bac1b889a405c177bde4f /encoding.c
parent7911d42f1b3b4d6fdaab7a70d69c7bb1351af06c (diff)
* 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.c2
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;