summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-26 13:14:40 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-26 13:41:58 -0800
commit652e382e686df5fe0e63e2f2568e820819ab1b08 (patch)
tree9f93a78ba35fbd7fcb88dd5b0ffb5cf8f040d46e /core
parent65213f044e463fb6cadfe2a08f81a07efd364155 (diff)
downloadsubsurface-652e382e686df5fe0e63e2f2568e820819ab1b08.tar.gz
Cleanup: avoid a few memory leaks
Coverity CID 215199 Coverity CID 215195 Coverity CID 215196 Coverity CID 215198 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/ostctools.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/ostctools.c b/core/ostctools.c
index 48c86a378..fbee65b2f 100644
--- a/core/ostctools.c
+++ b/core/ostctools.c
@@ -177,6 +177,7 @@ void ostctools_import(const char *file, struct dive_table *divetable)
sort_table(divetable);
fclose(archive);
out:
+ free(archive);
free(devdata);
free(buffer);
}