From c99a895e28c8dcf8c359720ea0d1b8c9887bedf4 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 2 Dec 2010 17:40:10 +0000 Subject: * 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 --- encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'encoding.c') 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; -- cgit v1.2.3