mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-03 15:43:09 +00:00
Avoid resource leak
Coverity CID 1325288 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6979ebfdae
commit
b41773734b
1 changed files with 1 additions and 0 deletions
|
@ -1340,6 +1340,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
|
||||||
|
|
||||||
free(stoplevels);
|
free(stoplevels);
|
||||||
free(gaschanges);
|
free(gaschanges);
|
||||||
|
free(bottom_cache);
|
||||||
return decodive;
|
return decodive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue