#1 Memory Leak

Memory Leak (1)

I am working on solving the potentially disasterous
memory leak in matlab2fmex.
This leak is caused by using pointers as function
results. It turns out this is a well documented leak
(see comp.lang.fortran) that I have just become aware
of. Using pointers as function returns seems necessary
because as in Matlab, the size of the return argument
can vary depending on the inputs to the function.
I am working on a fix for this will will create a
set of temporary variables which will point to function
results. These temporary vars will then be deallocated
thus removing the leak.

Ben Barrowes


  • Benjamin Barrowes

    Logged In: YES

    This bug has been solved by using temporary pointer
    assignments and subroutine calls.

  • Benjamin Barrowes

    • status: open --> open-fixed
  • Benjamin Barrowes

    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks