summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-01 20:39:32 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-01 21:11:23 -0400
commitb41773734bdfa60c889c1ba01904a9c03a130d3c (patch)
tree24041710bd174d33c5ce9e3a02544616aa28814f
parent6979ebfdae328799a5c3f8dabc82c15299d56943 (diff)
downloadsubsurface-b41773734bdfa60c889c1ba01904a9c03a130d3c.tar.gz
Avoid resource leak
Coverity CID 1325288 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--planner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/planner.c b/planner.c
index 67d999fa3..e3d14ca07 100644
--- a/planner.c
+++ b/planner.c
@@ -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;
}