Hi All,
This code:
void main()
{
void *f;
char buff[100];
strcpy(buff,"1+1");
f = evaluator_create (buff);
assert(f);
evaluator_destroy (f);
exit(0);
}
gives me a memory leak in valgrind:
==19940== 16,386 bytes in 1 blocks are still reachable in loss record 3
of 3
==19940== at 0x4C28BF6: malloc (vg_replace_malloc.c:299)
==19940== by 0x60A102A: yy_create_buffer (in
/usr/lib64/libmatheval.so.1.0.0)
==19940== by 0x60A19C8: yylex (in /usr/lib64/libmatheval.so.1.0.0)
==19940== by 0x60A0ABD: yyparse (in /usr/lib64/libmatheval.so.1.0.0)
==19940== by 0x60A21D3: evaluator_create (in
/usr/lib64/libmatheval.so.1.0.0)
==19940== by 0x4097A8: main (main.c:68)
I'm going to work around it but thought you guys should know!
all the best,
Rod