fix memory leak in aligned_reuse