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

Memory leak in JointBeliefSparse.cpp #14

Open
laurimi opened this issue Oct 15, 2018 · 0 comments
Open

Memory leak in JointBeliefSparse.cpp #14

laurimi opened this issue Oct 15, 2018 · 0 comments

Comments

@laurimi
Copy link

laurimi commented Oct 15, 2018

TGet* T = pu.GetTGet();

This line creates uses new to create a pointer, but the memory is never freed. This can probably be fixed simply by adding delete T; this is what JointBelief.cpp does in the analogous function.

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

No branches or pull requests

1 participant