Re: [R] Memory leaks in .C-interface

2012-02-03 Thread Duncan Murdoch
On 12-02-03 9:26 AM, Grigory Alexandrovich wrote: Hi, I wrote a C-function which I call with the .C-interface ( something like .C("foo", x, y) ). The function does a lot of things. Amongst other things it allocates much memor

[R] Memory leaks in .C-interface

2012-02-03 Thread Grigory Alexandrovich
Hi, I wrote a C-function which I call with the .C-interface ( something like .C("foo", x, y) ). The function does a lot of things. Amongst other things it allocates much memory (stack and heap). Every heap allocation (with m