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

[AIST-QA] Fix memory leak issue in end_effectors_widget. #1829

Conversation

max-krichenbauer
Copy link
Contributor

Description

In end_effectors_widget.cpp, searched_data variable is not deleted which causes a memory leak.
This issue may have been overlooked because the similar bugs were fixed in other source files (virtual_joints_widget.cpp and robot_poses_widget.cpp).
This fix adds delete searched_data; to the function doneEditing().

This contribution is made by AIST ( https://www.aist.go.jp ) based on static code analysis with klocwork (Perforce Software).

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

…gets

- Correct the indication by the static analysis tool.
@max-krichenbauer max-krichenbauer changed the title [AIST-QA] Fix the code that causes the memory leak issue in end_effectors_widget. [AIST-QA] Fix memory leak issue in end_effectors_widget. Jan 9, 2020
@rhaschke rhaschke merged commit c289915 into moveit:melodic-devel Jan 9, 2020
@rhaschke
Copy link
Contributor

rhaschke commented Jan 9, 2020

Thanks for your analysis effort and for filing this bug fix.

@max-krichenbauer max-krichenbauer deleted the feature/analysis_tool/melodic/error/Memory_Leak/moveit_setup_assistant branch January 9, 2020 07:41
rhaschke pushed a commit to ubi-agni/moveit that referenced this pull request Jan 9, 2020
…gets (moveit#1829)

- Correct the indication by the static analysis tool.

Co-authored-by: Kazuki-Hazama <57083115+KazukiHazama@users.noreply.github.com>
rhaschke pushed a commit to ubi-agni/moveit that referenced this pull request Jan 9, 2020
…gets (moveit#1829)

- Correct the indication by the static analysis tool.

Co-authored-by: Kazuki-Hazama <57083115+KazukiHazama@users.noreply.github.com>
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.

3 participants