summaryrefslogtreecommitdiffstats
path: root/divesite.c
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2015-07-07 19:35:26 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-07 10:37:53 -0700
commit097d65521ab379cd2b17900de26d61f1626e1166 (patch)
tree52b2829d68434dc135305af0a723e6d6d52091dc /divesite.c
parentf9c3142fa7234c8d930779dcf61ad8fbf83a00a1 (diff)
downloadsubsurface-097d65521ab379cd2b17900de26d61f1626e1166.tar.gz
Clean double free in copy_dive_site()
This makes subsurface crash by simply clicking a dive in the list. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.c')
-rw-r--r--divesite.c1
1 files changed, 0 insertions, 1 deletions
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 {