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

Coverity issues: Muon and NeXus load issues #797

Merged
merged 13 commits into from May 28, 2015
Merged

Conversation

raquelalvarezbanos
Copy link
Contributor

Fixes #11825

For tester: code review, check that all the issues reported in the trac ticket have been solved.

@FedeMPouzols FedeMPouzols added Maintenance Unassigned issues to be addressed in the next maintenance period. Coverity Framework Issues and pull requests related to components in the Framework labels May 27, 2015
@FedeMPouzols FedeMPouzols added this to the Release 3.5 milestone May 27, 2015
@FedeMPouzols FedeMPouzols self-assigned this May 27, 2015
@@ -77,16 +77,16 @@ class DLLExport AppendGeometryToSNSNexus : public API::Algorithm {
bool m_makeNexusCopy;

/// Algorithm progress keeper
API::Progress *progress;
API::Progress *m_progress;

Copy link
Contributor

Choose a reason for hiding this comment

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

With this m_progress I think we have the same issue as I've seen in other algorithms. Somewhere in the implementation it is allocated with new but then never deleted. This is just a small leak but it could be fixed here, simply adding the missing delete or, most likely better, by using a smart pointer. Oh, and also progress/m_progess does not need to be a member of the class, it can live just inside the exec method().

@FedeMPouzols
Copy link
Contributor

We got failures in the DownloadFile test which are unrelated (not bothering to recompile). Code changes look good to me. This should fix a good bunch of coverity issues.

FedeMPouzols added a commit that referenced this pull request May 28, 2015
Coverity issues: Muon and NeXus load issues
@FedeMPouzols FedeMPouzols merged commit 31dc59e into master May 28, 2015
@FedeMPouzols FedeMPouzols deleted the 11825_Coverity_issues branch May 28, 2015 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework Maintenance Unassigned issues to be addressed in the next maintenance period.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants