summaryrefslogtreecommitdiffstats
path: root/core/divesite.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-05 21:33:07 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-05 12:06:13 -0700
commitd96c47a1b9d7bf72e07ca1ee2b7b45cb972825ac (patch)
tree7e24c89719d29fd1a9575c3e1f13fdc14c52c645 /core/divesite.c
parentc127a92e8e4544b793fd5b8f2548ab3e646818c9 (diff)
downloadsubsurface-d96c47a1b9d7bf72e07ca1ee2b7b45cb972825ac.tar.gz
divesite.c: prevent double free()
Reported-by: Benjamin Fogel <nystire@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'core/divesite.c')
-rw-r--r--core/divesite.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/divesite.c b/core/divesite.c
index fd25bb965..4e4eccfe8 100644
--- a/core/divesite.c
+++ b/core/divesite.c
@@ -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;