summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--save-xml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c
index 9e3640cad..5c05723b7 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -193,4 +193,5 @@ void save_dives(const char *filename)
for (i = 0; i < dive_table.nr; i++)
save_dive(f, get_dive(i));
fprintf(f, "</dives>\n");
+ fclose(f);
}