diff options
-rw-r--r-- | core/divelist.c | 1 | ||||
-rw-r--r-- | core/divesite.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/core/divelist.c b/core/divelist.c index 8881aceeb..be0d95852 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -715,6 +715,7 @@ void free_trip(dive_trip_t *trip) if (trip) { free(trip->location); free(trip->notes); + free(trip->dives.dives); free(trip); } } diff --git a/core/divesite.c b/core/divesite.c index 85ce8da37..b5ce99a8d 100644 --- a/core/divesite.c +++ b/core/divesite.c @@ -207,6 +207,7 @@ void free_dive_site(struct dive_site *ds) free(ds->name); free(ds->notes); free(ds->description); + free(ds->dives.dives); free_taxonomy(&ds->taxonomy); free(ds); } |