This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix BZ 18820 -- fmemopen may leak memory on failure


Greetings,

I split out the "fix leak" part of BZ #18757 fix from
https://sourceware.org/ml/libc-alpha/2015-08/msg00315.html

Tested on Linux/x86_64, no new failures.

Thanks,


2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>

        [BZ #18820]
        * libio/Makefile (test-fmemopen-mem): New test.
        * libio/test-fmemopen.c (do_bz18820): New test.
        * libio/fmemopen.c (__fmemopen): Fix memory leak.
        * libio/oldfmemopen.c (__old_fmemopen): Likewise.

-- 
Paul Pluzhnikov

Attachment: bz18820-20150812.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]