From 24c6197c1019e8a3e7e5924522071be5a68a7be9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 29 Sep 2012 20:57:48 -0700 Subject: Fix a number of obvious memory leaks Just the result of cppcheck and valgrind... Signed-off-by: Dirk Hohndel --- main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main.c') 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) -- cgit v1.2.3-70-g09d2