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

Prevent leak of binary_partition in choose_chunkdivision #1603

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

ahoenselaar
Copy link
Contributor

No description provided.

@@ -112,13 +113,13 @@ void structure::choose_chunkdivision(const grid_volume &thegv, int desired_num_c
a = gv.a;
dt = Courant / a;

binary_partition *my_bp = NULL;
if (!bp) my_bp = meep::choose_chunkdivision(gv, v, desired_num_chunks, s);
std::unique_ptr<binary_partition> my_bp;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to test for C++11 in autoconf (https://stackoverflow.com/questions/11909347/autotools-check-for-c11)

@stevengj stevengj merged commit 0d7d68c into NanoComp:master Jun 10, 2021
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
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.

2 participants