This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix memory leak in printf_positional
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 26 Aug 2015 09:34:28 +0000
- Subject: Re: [PATCH] Fix memory leak in printf_positional
- Authentication-results: sourceware.org; auth=none
- References: <1440571295-20230-1-git-send-email-eggert at cs dot ucla dot edu>
For memory leak bugs, if possible we add testcases to the testsuite that
use mtrace. That means (in addition to listing the test in tests as
usual) adding $(objpfx)<test>-mem.out to tests-special, setting <test>-ENV
to set MALLOC_TRACE, and adding the makefile rule that calls mtrace; see
various existing examples. (Of course the test should be something
verified to fail the mtrace tests before the leak fix is applied;
presumably it isn't hard to construct such a case that uses the malloc
path here, and there might even be an existing test that could just have
the pieces to use mtrace added to it.)
--
Joseph S. Myers
joseph@codesourcery.com