in reply to perl XS - suspected memory leak (works)

If you do something like:
for(1.. $large_integer) { findEAsForGivenRAAndContext($arg1, $arg2, $arg3, \@eaArray); }
then @eaArray is going to get bigger and bigger, consuming more and more memory.
I suppose this could perhaps be misinterpreted as a memory leak ... but it's not.

*I* can't see anything else. (But I don't really understand this form of XS code.)

Cheers,
Rob