#4935: is_perfect_power leaks
----------------------+-----------------------------------------------------
 Reporter:  mabshoff  |        Owner:  robertwb
     Type:  defect    |       Status:  new     
 Priority:  major     |    Milestone:  sage-3.3
Component:  memleak   |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by mabshoff):

 Well, sorry to disappoint you, but t-perfpow.c from very recent mpir-svn
 doesn't leak:
 {{{
 gmp-mpir-svn1523/src/tests/mpz/.libs$ valgrind --tool=memcheck --leak-
 resolution=high ./t-perfpow
 ==31616== Memcheck, a memory error detector.
 ==31616== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
 ==31616== Using LibVEX rev 1854, a library for dynamic binary translation.
 ==31616== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
 ==31616== Using valgrind-3.3.1, a dynamic binary instrumentation
 framework.
 ==31616== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
 ==31616== For more details, rerun with: -v
 ==31616==
 ==31616==
 ==31616== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 1)
 ==31616== malloc/free: in use at exit: 0 bytes in 0 blocks.
 ==31616== malloc/free: 375,348 allocs, 375,348 frees, 7,978,732 bytes
 allocated.
 ==31616== For counts of detected errors, rerun with: -v
 ==31616== All heap blocks were freed -- no leaks are possible.
 }}}
 So I am starting to blame not-mpir :)

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4935#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to