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

alloc-dealloc-mismatch in vtkDataSetToNonOrthogonalDataSetTest #752

Merged
merged 1 commit into from May 21, 2015

Conversation

quantumsteve
Copy link
Contributor

This fixes #11762.

AddressSanitizer found an alloc-dealloc-mismatch in vtkDataSetToNonOrthogonalDataSetTest. The full error is in the ticket. Instead of fixing the delete, I replaced owning raw pointer with std::vector. Given the size of the array (16 elements) the extra copy is very fast and probably eliminated by return value optimization.

testing: Given the size of the change, code review is sufficient.

@quantumsteve quantumsteve added Bug Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing) Vates Unit Tests labels May 14, 2015
@quantumsteve quantumsteve added this to the Release 3.5 milestone May 14, 2015
@FedeMPouzols FedeMPouzols self-assigned this May 21, 2015
FedeMPouzols added a commit that referenced this pull request May 21, 2015
alloc-dealloc-mismatch in vtkDataSetToNonOrthogonalDataSetTest
@FedeMPouzols FedeMPouzols merged commit 6231ed8 into master May 21, 2015
@FedeMPouzols FedeMPouzols deleted the 11762_alloc-dealloc-mismatch branch May 21, 2015 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing) Vates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants