mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: free tank info table on exit
This is obviously a pure code-hygiene thing. But with the new dynamic tank info table, this becomes trivial, so let's do it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
50b11024d6
commit
d16a9f118a
3 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,6 @@ void add_cylinder_description(const cylinder_type_t *type)
|
|||
if (strcmp(tank_info_table.infos[i].name, desc) == 0)
|
||||
return;
|
||||
}
|
||||
// FIXME: leaked on exit
|
||||
add_tank_info_metric(&tank_info_table, desc, type->size.mliter,
|
||||
type->workingpressure.mbar / 1000);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue