BUGS having trouble with free()ing lifeformData structures from memory.
I don't know what the hell is going on to be honest.
Try looking into the way that the gene generating function generates genes. try turning it off and see if the problems go away...