Document found leaks
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6e72b5b8c5
commit
508f930660
@ -23,6 +23,7 @@ void add_cylinder_description(cylinder_type_t *type)
|
||||
return;
|
||||
}
|
||||
if (i < 100) {
|
||||
// FIXME: leaked on exit
|
||||
tank_info[i].name = strdup(desc);
|
||||
tank_info[i].ml = type->size.mliter;
|
||||
tank_info[i].bar = type->workingpressure.mbar / 1000;
|
||||
@ -43,6 +44,7 @@ void add_weightsystem_description(weightsystem_t *weightsystem)
|
||||
}
|
||||
}
|
||||
if (i < 100) {
|
||||
// FIXME: leaked on exit
|
||||
ws_info[i].name = strdup(desc);
|
||||
ws_info[i].grams = weightsystem->weight.grams;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user