summaryrefslogtreecommitdiffstats
path: root/core/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/file.c')
-rw-r--r--core/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/file.c b/core/file.c
index 5c12c0a5d..beb799c09 100644
--- a/core/file.c
+++ b/core/file.c
@@ -351,6 +351,7 @@ int parse_file(const char *filename)
/* OSTCtools */
if (fmt && (!strcasecmp(fmt + 1, "DIVE"))) {
+ free(mem.buffer);
ostctools_import(filename, &dive_table);
return 0;
}