fixing windows compilation issue

This commit is contained in:
2024-12-16 16:39:50 +01:00
parent 69bbed5b54
commit 35b47936b4

View File

@@ -106,7 +106,7 @@ namespace mlx
for(const Descriptor& desc : s_blocks)
{
#ifdef MLX_COMPILER_MSVC
if(it->aligned)
if(desc.aligned)
_aligned_free(desc.ptr);
else
std::free(desc.ptr);