[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there memory leak in this approach?

From: Jordi Gutiérrez Hermoso
Subject: Re: Is there memory leak in this approach?
Date: Sat, 24 Sep 2011 09:49:01 -0500

On 24 September 2011 07:45, babelproofreader <address@hidden> wrote:
> I have written many .oct functions which require numerous arrays/vectors to
> hold internal calculations, but which output perhaps just a few of these
> arrays/vectors as return values. A simplistic example is:
> My concern is: What happens to the internal_vectors? Do I need to clean them
> up in some way or is the memory they occupy automatically released once the
> function exits?

If you didn't write "new" or "malloc" in your code but only used
Octave's API, there should be no memory leak unless we have a bug.

- Jordi G. H.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]