Skip to content

Commit

Permalink
Fix fiber clean loop on Windows (#12300)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Jul 21, 2022
1 parent 94d0f2b commit c4799c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystal/system/win32/fiber.cr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Crystal::System::Fiber
end

def self.free_stack(stack : Void*, stack_size) : Nil
if LibC.VirtualFree(stack, stack_size, LibC::MEM_RELEASE) == 0
if LibC.VirtualFree(stack, 0, LibC::MEM_RELEASE) == 0
raise RuntimeError.from_winerror("VirtualFree")
end
end
Expand Down

0 comments on commit c4799c6

Please sign in to comment.