diff options
author | Marcos CARDINOT <mcardinot@gmail.com> | 2015-04-21 14:00:17 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-22 13:59:50 -0700 |
commit | 59f283a4fc1d6ce63ddaea5feb17fdfd26a82951 (patch) | |
tree | 3b0831945540b03196f6a7b88c8bb0508d4e7a8f | |
parent | 6f7e3d04cb737515b03243adc638fbc03e565c4d (diff) | |
download | subsurface-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>
-rw-r--r-- | ostctools.c | 3 |
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; } |