mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
divesite.c: prevent double free()
Reported-by: Benjamin Fogel <nystire@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
c127a92e8e
commit
d96c47a1b9
1 changed files with 0 additions and 1 deletions
|
@ -314,7 +314,6 @@ void clear_dive_site(struct dive_site *ds)
|
|||
free(ds->name);
|
||||
free(ds->notes);
|
||||
free(ds->description);
|
||||
free(ds->name);
|
||||
ds->name = 0;
|
||||
ds->notes = 0;
|
||||
ds->description = 0;
|
||||
|
|
Loading…
Reference in a new issue