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>
This commit is contained in:
Marcos CARDINOT 2015-04-21 14:00:17 -03:00 committed by Dirk Hohndel
parent 6f7e3d04cb
commit 59f283a4fc

View file

@ -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;
}