summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ostctools.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ostctools.c b/ostctools.c
index 4fa0ba5e7..68b7da01f 100644
--- a/ostctools.c
+++ b/ostctools.c
@@ -78,6 +78,9 @@ void ostctools_import(const char *file, struct dive_table *divetable)
// Open the archive
if ((archive = subsurface_fopen(file, "rb")) == NULL) {
report_error(translate("gettextFromC", "Error: couldn't open the file"));
+ free(devdata);
+ free(buffer);
+ free(ostcdive);
return;
}