From 097d65521ab379cd2b17900de26d61f1626e1166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salvador=20Cu=C3=B1at?= Date: Tue, 7 Jul 2015 19:35:26 +0200 Subject: [PATCH] Clean double free in copy_dive_site() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes subsurface crash by simply clicking a dive in the list. Signed-off-by: Salvador Cuñat Signed-off-by: Dirk Hohndel --- divesite.c | 1 - 1 file changed, 1 deletion(-) diff --git a/divesite.c b/divesite.c index 5abab7601..5c96bb2dd 100644 --- a/divesite.c +++ b/divesite.c @@ -171,7 +171,6 @@ void copy_dive_site(struct dive_site *orig, struct dive_site *copy) copy->uuid = orig->uuid; if (orig->taxonomy.category == NULL) { free_taxonomy(copy->taxonomy.category); - free(copy->taxonomy.category); copy->taxonomy.category = NULL; copy->taxonomy.nr = 0; } else {