diff options
Diffstat (limited to 'core/parse.c')
-rw-r--r-- | core/parse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/parse.c b/core/parse.c index 054db156f..067008970 100644 --- a/core/parse.c +++ b/core/parse.c @@ -228,8 +228,7 @@ void dive_site_end(void) if (verbose > 3) printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name); } - free_taxonomy(&cur_dive_site->taxonomy); - free(cur_dive_site); + free_dive_site(cur_dive_site); cur_dive_site = NULL; } @@ -254,7 +253,7 @@ void dive_end(void) if (!cur_dive) return; if (!is_dive()) - free(cur_dive); + free_dive(cur_dive); else record_dive_to_table(cur_dive, target_table); cur_dive = NULL; |