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(HepMC3): Remove shared_ptr to stack variable #879

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

paulgessinger
Copy link
Member

In a few spots in the HepMC3 examples, std::shared_ptr were created with raw pointers to stack variables. This clearly results in std::shared_ptr calling delete on cleared memory.

@FabianKlimpel can you review this small change?

In a few spots in the HepMC3 examples, `std::shared_ptr` were created with raw pointers to stack variables. This clearly results in `std::shared_ptr` calling `delete` on cleared memory.
@paulgessinger paulgessinger added this to the next milestone Jul 15, 2021
Copy link
Contributor

@FabianKlimpel FabianKlimpel left a comment

Choose a reason for hiding this comment

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

Nothing to discuss - it can go in

@codecov
Copy link

codecov bot commented Jul 15, 2021

Codecov Report

Merging #879 (3932103) into main (9a38f3f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #879   +/-   ##
=======================================
  Coverage   48.66%   48.66%           
=======================================
  Files         331      331           
  Lines       17129    17129           
  Branches     8094     8094           
=======================================
  Hits         8336     8336           
  Misses       3087     3087           
  Partials     5706     5706           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a38f3f...3932103. Read the comment docs.

Copy link
Contributor

@asalzburger asalzburger left a comment

Choose a reason for hiding this comment

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

Trivial, self-explaining change, can go in.

@asalzburger asalzburger merged commit a99ae08 into acts-project:main Jul 15, 2021
@paulgessinger paulgessinger modified the milestones: next, v10.0.0 Jul 28, 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.

None yet

3 participants