From d96c47a1b9d7bf72e07ca1ee2b7b45cb972825ac Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 5 Oct 2017 21:33:07 +0300 Subject: divesite.c: prevent double free() Reported-by: Benjamin Fogel Signed-off-by: Lubomir I. Ivanov --- core/divesite.c | 1 - 1 file changed, 1 deletion(-) (limited to 'core') 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; -- cgit v1.2.3-70-g09d2