Fix: memory not freed