aboutsummaryrefslogtreecommitdiffstats
path: root/core/divesite.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-07 20:13:46 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-10-07 23:40:37 +0300
commit424558cf89bd172a7729943af9df21f6ce50c2d8 (patch)
treef4effc962a57117db468e8941594fc6e9a2aaf9f /core/divesite.c
parenta5ad550df5d585e04d7176cc141406f8610cfc13 (diff)
downloadsubsurface-424558cf89bd172a7729943af9df21f6ce50c2d8.tar.gz
Leak fix: free taxonomy data in delete_dive_site()
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.c')
-rw-r--r--core/divesite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divesite.c b/core/divesite.c
index 3045b580e..e84ec1dcc 100644
--- a/core/divesite.c
+++ b/core/divesite.c
@@ -175,6 +175,7 @@ void delete_dive_site(uint32_t id)
if (ds->uuid == id) {
free(ds->name);
free(ds->notes);
+ free_taxonomy(&ds->taxonomy);
free(ds);
if (nr - 1 > i)
memmove(&dive_site_table.dive_sites[i],