This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Fix recent fmemopen breakage
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: [PATCH] Fix recent fmemopen breakage
- From: Andreas Jaeger <aj at suse dot de>
- Date: 02 Sep 2000 17:05:58 +0200
- Cc: libc-alpha at sources dot redhat dot com
- References: <00090212495000.30892@enzo.bigblue.local>
>>>>> Franz Sirl writes:
> Hi,
> the last change to fmemopen.c is a bit optimistic, it's not OK to free mem we
> didn't allocate, it may be a static buffer. The patch makes the testsuite
> happy again.
> Also included a small linuxthreads warning fix, it may be the wrong solution
> though, cause I find it a bit strange that testandset and __comapare_and_swap
> take differing kind of pointers.
> Franz.
> * libio/fmemopen.c (fmemopen_close): Don't free buffer if we didn't allocate
> it.
I've added this one already myself (same patch as yours).
> * linuxthreads/spinlock.h: Warning fix.
Uli has to comment on this,
Thanks,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj