Leak fix: free taxonomy data in delete_dive_site()

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-10-07 20:13:46 +02:00 committed by Lubomir I. Ivanov
parent a5ad550df5
commit 424558cf89

View file

@ -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],