-
Notifications
You must be signed in to change notification settings - Fork 117
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 topic_name of subscription and publisher (at least) #107
Comments
@wjwwood I'll take care of this one. |
There's also another problem here, in that valgrind usually complains about a mismatched |
There is almost certainly other issues in that file. It wasn't written by us originally, and so hasn't been subject to code review for much of its life. This is issue was about a very particular issue. I don't think you can use valgrind pass/fail as an indicator of whether or not this is fixed. |
I also see a lot of inconsistency wrt the use of |
Yes as @wjwwood mentioned this file has not been written by us, has a lot of inconsistency and issues and should be both audited and refactored. This is out of the scope of this particular issue as pointed out in the previous comment. |
putting this back in ready with a more generic title to reflect the first comment:
EDIT: Actually I'll open another ticket tracking the high level issue |
closed in favor of #122 |
See:
new
called here with no matchingdelete
/free()
that I can find:rmw_fastrtps/rmw_fastrtps_cpp/src/functions.cpp
Line 879 in 3a7538a
new
called here with no matchingdelete
/free()
that I can find:rmw_fastrtps/rmw_fastrtps_cpp/src/functions.cpp
Line 1120 in 3a7538a
Really the whole file should be audited. Also the
new
can throw a C++ exception that would raise through thermw
C interface which is bad. It should either usemalloc
orrmw_allocate
or the newrcutils_allocator_t
or it should try-catch thenew
.The text was updated successfully, but these errors were encountered: