Leak fix: free taxonomy data in delete_dive_site()
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
a5ad550df5
commit
424558cf89
@ -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],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user