fix: UnsafeMutablePointer memory leak