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:
Berthold Stoeger 2020-12-11 22:41:33 +01:00 committed by Dirk Hohndel
parent 50b11024d6
commit d16a9f118a
3 changed files with 2 additions and 1 deletions

View file

@ -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);
}