mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue