From 424558cf89bd172a7729943af9df21f6ce50c2d8 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 7 Oct 2018 20:13:46 +0200 Subject: [PATCH] Leak fix: free taxonomy data in delete_dive_site() Signed-off-by: Berthold Stoeger --- core/divesite.c | 1 + 1 file changed, 1 insertion(+) 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],