Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad Windows free in dimshuffle.c #762

Merged

Conversation

brandonwillard
Copy link
Member

This PR closes #707.

It looks like the PyDimMem_FREE macro can have two different behaviors, and one of them doesn't match the explicit use of malloc. The changes here make the allocation and deallocation approaches match.

@brandonwillard brandonwillard added bug Something isn't working Windows labels Jan 17, 2022
@brandonwillard brandonwillard self-assigned this Jan 17, 2022
@brandonwillard brandonwillard changed the title Fix bad Windows free in dimshuffle.c Fix bad Windows free in dimshuffle.c Jan 17, 2022
@codecov
Copy link

codecov bot commented Jan 18, 2022

Codecov Report

Merging #762 (73f332e) into main (652e6e4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #762   +/-   ##
=======================================
  Coverage   78.34%   78.34%           
=======================================
  Files         152      152           
  Lines       47656    47656           
  Branches    10876    10876           
=======================================
  Hits        37337    37337           
  Misses       7772     7772           
  Partials     2547     2547           

@brandonwillard brandonwillard merged commit c575da2 into aesara-devs:main Jan 18, 2022
@brandonwillard brandonwillard deleted the fix-win-dimshuffle-free branch January 18, 2022 05:21
@twiecki
Copy link
Contributor

twiecki commented Jan 18, 2022

Awesome, and can we cut a new aesara release with this?

@brandonwillard
Copy link
Member Author

Awesome, and can we cut a new aesara release with this?

Just did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New DimShuffle C-code fails on Windows
2 participants