debugging feature extraction, looking for memory leaks