#1 Memory Leak

0.2_matlab2fmex
closed-fixed
Memory Leak (1)
5
2005-11-23
2001-08-15
No

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

Discussion

  • Benjamin Barrowes

    Logged In: YES
    user_id=241093

    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