From 3146ad427ad702bfa6c18c418c0883bd3341d079 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 2 Sep 2000 15:05:15 +0000 Subject: Update. 2000-09-02 Andreas Jaeger * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64. * libio/fmemopen.c (fmemopen_close): Revert one part of last patch. --- libio/fmemopen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libio') diff --git a/libio/fmemopen.c b/libio/fmemopen.c index bf996d4058..92df2e4424 100644 --- a/libio/fmemopen.c +++ b/libio/fmemopen.c @@ -183,7 +183,8 @@ fmemopen_close (void *cookie) c = (fmemopen_cookie_t *) cookie; - free (c->buffer); + if (c->mybuffer) + free (c->buffer); free (c); return 0; -- cgit v1.2.3