From 59f283a4fc1d6ce63ddaea5feb17fdfd26a82951 Mon Sep 17 00:00:00 2001 From: Marcos CARDINOT Date: Tue, 21 Apr 2015 14:00:17 -0300 Subject: ostctools - resource leaks some resources are not being freed. Signed-off-by: Marcos CARDINOT Signed-off-by: Dirk Hohndel --- ostctools.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ostctools.c') 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; } -- cgit v1.2.3-70-g09d2