Skip to content

Odin leak pin->mapping #730

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

Merged
merged 8 commits into from
Jul 17, 2019

Conversation

j-b-1-7
Copy link
Contributor

@j-b-1-7 j-b-1-7 commented Jul 16, 2019

Description

Fixed memory leak from pin->mapping being set to NULL before being freed.

Types of changes

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@probot-autolabeler probot-autolabeler bot added lang-cpp C/C++ code Odin Odin II Logic Synthesis Tool: Unsorted item labels Jul 16, 2019
@j-b-1-7 j-b-1-7 changed the title WIP: Odin leak pin->mapping Odin leak pin->mapping Jul 16, 2019
@@ -437,6 +437,8 @@ void split_sp_memory_depth(nnode_t *node, int split_size)

npin_t *pin = signals->out->pins[i];
pin->name = mux->name;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should check that the name is null before assignment otherwise it should be freed beforehand

@jeanlego jeanlego merged commit 42da0b4 into verilog-to-routing:master Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code Odin Odin II Logic Synthesis Tool: Unsorted item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants