summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c
index 37efed67a..13eda68b5 100644
--- a/divelist.c
+++ b/divelist.c
@@ -1931,6 +1931,7 @@ void delete_single_dive(int idx)
dive_table.nr--;
if (dive->selected)
amount_selected--;
+ free(dive->sample);
free(dive);
}