From 3edaf669ba25bcceebb8e4d6d3b2f9e338b35b94 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 8 Jun 2008 10:01:40 +0000 Subject: * array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c, enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c, io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c, string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c, vm.c, gc.c: allocated memory objects by xmalloc (ruby_xmalloc) should be freed by xfree (ruby_xfree). * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c, ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c, ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c, ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c, ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/zlib/zlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/zlib') diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index b06ebe3fa..66616fb09 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -398,7 +398,7 @@ zlib_mem_alloc(voidpf opaque, uInt items, uInt size) static void zlib_mem_free(voidpf opaque, voidpf address) { - free(address); + xfree(address); } static void @@ -793,7 +793,7 @@ zstream_free(struct zstream *z) if (ZSTREAM_IS_READY(z)) { zstream_finalize(z); } - free(z); + xfree(z); } static VALUE @@ -1676,7 +1676,7 @@ gzfile_free(struct gzfile *gz) } zstream_finalize(z); } - free(gz); + xfree(gz); } static VALUE -- cgit