Avoid malloc
where unnecessary
#211
Labels
housekeeping
Code cleanup
technical
Technical and meta issues, not related to physics but infrastructure.
Milestone
Running TDMS through
Valgrind
shows that we have a number of memory leaks from randommalloc
calls, andplhs
never being unassigned. We also have a number ofmalloc
'd blocks of size 0 bytes which we then write to 😬We need to go through the codebase and check that we are not abusing the use of
malloc
: there are a number of cases wheremalloc
is used when a scoped declaration would be sufficient; that israther than
In the case of variable-length arrays we can switch to
std::vector
:as opposed to
The text was updated successfully, but these errors were encountered: