diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-14 23:13:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-15 10:21:10 +1200 |
commit | 1bc977452dc7824ebb86df1c1ba5e14cd0ff83b7 (patch) | |
tree | 1a4f3ec0d9440949f2e2ec700f42c19de3671cf7 /core/divelist.c | |
parent | 5966a74ae36f61ee73eb1b585068a4677b4f7324 (diff) | |
download | subsurface-1bc977452dc7824ebb86df1c1ba5e14cd0ff83b7.tar.gz |
Cleanup: free dive table in trips and dive sites
Trips and dive sites were changed to use dive tables instead
of linked lists. But the memory used for the tables wasn't freed.
Do this.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 1 |
1 files changed, 1 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); } } |