summaryrefslogtreecommitdiffstats
path: root/ostctools.c
diff options
context:
space:
mode:
authorGravatar Marcos CARDINOT <mcardinot@gmail.com>2015-04-21 14:00:17 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-22 13:59:50 -0700
commit59f283a4fc1d6ce63ddaea5feb17fdfd26a82951 (patch)
tree3b0831945540b03196f6a7b88c8bb0508d4e7a8f /ostctools.c
parent6f7e3d04cb737515b03243adc638fbc03e565c4d (diff)
downloadsubsurface-59f283a4fc1d6ce63ddaea5feb17fdfd26a82951.tar.gz
ostctools - resource leaks
some resources are not being freed. Signed-off-by: Marcos CARDINOT <mcardinot@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'ostctools.c')
-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;
}