Skip to content

Fix segmentation fault when running with nested sub-schedules#249

Merged
gonuke merged 1 commit intosvalinn:mainfrom
anu1217:fix_nested_sf
Mar 2, 2026
Merged

Fix segmentation fault when running with nested sub-schedules#249
gonuke merged 1 commit intosvalinn:mainfrom
anu1217:fix_nested_sf

Conversation

@anu1217
Copy link
Contributor

@anu1217 anu1217 commented Feb 26, 2026

A small set of changes that fixes #247. Turns subSched into an array of 1 pointer so that it's consistent with the deletion later. Fixes a possible double-deletion issue with how the memory subSched[0] was pointing to wasn't freed before the tmp array is deleted.

remove child variable
Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

This seems reasonable - thanks for finding this needle in the haystack!

@gonuke gonuke merged commit 7a817fa into svalinn:main Mar 2, 2026
1 check passed
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.

Segmentation fault when running with nested sub-schedules

2 participants