mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:23:23 +00:00
Dive site rewrite: fix double free
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
05c5bf0919
commit
9d51326e48
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ void clear_dive_site(struct dive_site *ds)
|
|||
free(ds->name);
|
||||
free(ds->notes);
|
||||
free(ds->description);
|
||||
ds->name = 0;
|
||||
ds->notes = 0;
|
||||
ds->description = 0;
|
||||
ds->latitude.udeg = 0;
|
||||
ds->longitude.udeg = 0;
|
||||
ds->uuid = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue