From 44ee48fdd74d8582fd05cd6134aba787304d0be3 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 19 Jan 2008 11:43:24 +0000 Subject: * encoding.c (enc_new): don't free rb_encoding to avoid SEGV by `miniruby -e exit' on x86_64 GNU/Linux. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15127 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 6a7d906c3..328f2d474 100644 --- a/encoding.c +++ b/encoding.c @@ -73,7 +73,7 @@ enc_mark(void *ptr) static VALUE enc_new(rb_encoding *encoding) { - VALUE enc = Data_Wrap_Struct(rb_cEncoding, enc_mark, -1, encoding); + VALUE enc = Data_Wrap_Struct(rb_cEncoding, enc_mark, 0, encoding); encoding->auxiliary_data = (void *)enc; return enc; } -- cgit