fmemopen test failure
Andreas Jaeger
aj@suse.de
Sat Sep 2 05:56:00 GMT 2000
Hi Uli,
I fear you cleaned up too much. test-fmemopen fails for me, the
appended patch fixes this.
Andreas
2000-09-02 Andreas Jaeger <aj@suse.de>
* libio/fmemopen.c (fmemopen_close): Revert one part of
last patch.
============================================================
Index: libio/fmemopen.c
--- libio/fmemopen.c 2000/09/01 20:49:16 1.2
+++ libio/fmemopen.c 2000/09/02 10:56:40
@@ -183,7 +183,8 @@
c = (fmemopen_cookie_t *) cookie;
- free (c->buffer);
+ if (c->mybuffer)
+ free (c->buffer);
free (c);
return 0;
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list