Avoid resource leak

Coverity CID 1325288

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-10-01 20:39:32 -04:00
parent 6979ebfdae
commit b41773734b

View file

@ -1340,6 +1340,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
free(stoplevels);
free(gaschanges);
free(bottom_cache);
return decodive;
}