diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-10-05 21:33:07 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-05 12:06:13 -0700 |
commit | d96c47a1b9d7bf72e07ca1ee2b7b45cb972825ac (patch) | |
tree | 7e24c89719d29fd1a9575c3e1f13fdc14c52c645 /core/divesite.c | |
parent | c127a92e8e4544b793fd5b8f2548ab3e646818c9 (diff) | |
download | subsurface-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.c | 1 |
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; |