diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2015-07-07 19:35:26 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-07 10:37:53 -0700 |
commit | 097d65521ab379cd2b17900de26d61f1626e1166 (patch) | |
tree | 52b2829d68434dc135305af0a723e6d6d52091dc /divesite.c | |
parent | f9c3142fa7234c8d930779dcf61ad8fbf83a00a1 (diff) | |
download | subsurface-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.c | 1 |
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 { |