Hi,

	no comments are needed...

		Michal


Index: file.c
===================================================================
RCS file: /src/ruby/file.c,v
retrieving revision 1.109
diff -u -p -r1.109 file.c
--- file.c	2002/08/29 09:08:15	1.109
+++ file.c	2002/08/30 14:54:55
@@ -1301,7 +1301,10 @@ rb_file_s_readlink(klass, path)
 	size *= 2;
 	buf = xrealloc(buf, size);
     }
-    if (rv < 0) rb_sys_fail(RSTRING(path)->ptr);
+    if (rv < 0) {
+	free(buf);
+	rb_sys_fail(RSTRING(path)->ptr);
+    }
     v = rb_tainted_str_new(buf, rv);
     free(buf);
 

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michal Rokos                         Czech Technical University, Prague
E-mail:m.rokos / sh.cvut.cz      ICQ:36118339      Jabber:majkl / jabber.cz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-