summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-29 20:57:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-29 20:58:26 -0700
commit24c6197c1019e8a3e7e5924522071be5a68a7be9 (patch)
treec59de59d3448063acf253371b8453a4b88be5e3b /main.c
parent12ca6112e5a6f8e5ec8e1fee09976ef973f99680 (diff)
downloadsubsurface-24c6197c1019e8a3e7e5924522071be5a68a7be9.tar.gz
Fix a number of obvious memory leaks
Just the result of cppcheck and valgrind... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 95f63713d..7101b8b87 100644
--- a/main.c
+++ b/main.c
@@ -259,6 +259,7 @@ int main(int argc, char **argv)
/* don't report errors - this file may not exist, but make
sure we remember this as the filename in use */
set_filename(filename, FALSE);
+ free((void *)filename);
}
report_dives(imported);
if (dive_table.nr == 0)