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 bench program crash with MSVC #111

Merged
merged 1 commit into from Apr 27, 2015

Conversation

jack-pappas
Copy link
Contributor

The change in 95a784c which defined posix_memalign for _WIN32 / MSVC builds causes the bench tool to crash because buffers allocated with _aligned_alloc() need to be freed with _aligned_free() instead of the usual free(). This PR defines a aligned_free macro which calls the appropriate function to free the aligned memory.

…ed to be freed with _aligned_free, or the program crashes.
@FrancescAlted
Copy link
Member

Looks good to me.

FrancescAlted added a commit that referenced this pull request Apr 27, 2015
Fix bench program crash with MSVC
@FrancescAlted FrancescAlted merged commit fe75400 into Blosc:master Apr 27, 2015
@jack-pappas jack-pappas deleted the bench-msvc-fix branch May 20, 2015 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants