Hi all,
I have a project that wraps some C library using Swig.
The library is called from Chicken scheme code. The
library has functions to allocate certain objects,
operate on them, and free them:
t1 *t1_alloc ();
void t1_mod (t1 *x);
void t1_free (t1 *x);
There are no special Swig wrappers; the swig.i file
simply imports the C headers.
This project used to work before Chicken 2.41, but now
it produces an abundance of double-free crashes, as in
*** glibc detected *** double free or corruption (out)
***
What could be the cause, and what's the easiest fix ?