stats: name and error index client memory leak