Just wanted to let you know that I've found the solution already. After
playing around with it I have discovered that fix is in adding
ENTER;SAVETMPS;FREETMPS;LEAVE fixes the problem.
So
for(i = 0; i < 1000; i++)
{
SV * sub;
char text[256];
ENTER;
SAVETMPS;
sprintf(text
[EMAIL PROTECTED] wrote:
Hi!
I hope this is the right list for this question. If not, please direct to
appropriate one.
My problem is simple. I'm embedding perl into my C program (perl 5.6.1).
I noticed that when I use eval_pl in my code then my program leaks memory. So
finally I reduced my prog
Hi!
I hope this is the right list for this question. If not, please direct to
appropriate one.
My problem is simple. I'm embedding perl into my C program (perl 5.6.1).
I noticed that when I use eval_pl in my code then my program leaks memory. So
finally I reduced my program to do the following.