Fix a number of obvious memory leaks

Just the result of cppcheck and valgrind...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-09-29 20:57:48 -07:00
parent 12ca6112e5
commit 24c6197c10
5 changed files with 23 additions and 17 deletions

1
main.c
View file

@ -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)