mem leak in median()?

From: <rgibson_at_email.domain.hidden>
Date: Fri, 25 Jan 2008 15:22:27 -0500
The following code causes ISIS to keep allocating memory which is never returned
(at least not in observable time frames).

---------------

define mT15() {
   variable i, t0, t1;
   variable myArr1 = Double_Type[ 100000 ]; myArr1[*] = 1.;
   variable n = 300;
   for (i = 0; i < n; i++) {
      () = median(myArr1);
      () = system(sprintf ("ps --pid %d v", getpid()));
   }
}

---------------

Try calling it a few times... at least on my setup, the memory does not get
returned while the function runs or between function calls.

The offending line appears to be the call to median(), as commenting it out
makes the leak disappear.

Using:
ISIS version 1.4.8; S-Lang version 2.0.6

Thanks,
Rob

----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Fri Jan 25 2008 - 15:22:41 EST

This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:45 EDT