#516 Leak in MPFIT using DOUBLE data

closed-fixed
nobody
None
6
2013-02-28
2013-02-25
Kalith
No

I know MPFIT is not a GDL routine, but the following code generates ~150MB memory leak for each call in GDL and does not leak in IDL. It only happens when using double precision numbers (memory usage stays the same when using floats) :

tmp = double(randomn(42,1000))
for i=0L, 1000L do r = mpfitexpr('p[0]', 0.0, tmp, 1.0, 1.0, /quiet)

Running GDL on Linux Mint 64bits.

Discussion

  • Alain C.

    Alain C. - 2013-02-25
    • priority: 5 --> 6
     
  • Alain C.

    Alain C. - 2013-02-25

    Thanks you for this very important bug report.
    I am able to reproduce it. Valgrind gave also indications.

    Alain

    PS: I was also facing a memory leak related to MPFIT but was unable to reduce it to a simple case, I hope you gave a quick way to solve also mine !

     
  • Marc Schellens

    Marc Schellens - 2013-02-28

    Thanks for reporting.

     
  • Marc Schellens

    Marc Schellens - 2013-02-28
    • status: open --> closed-fixed
     

Log in to post a comment.