Fixed pool memory leak