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]

Re: [PATCH] Fix memory leak in printf_positional


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


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