summaryrefslogtreecommitdiffstats
path: root/core/ostctools.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/ostctools.c')
-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);
}