diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-29 20:57:48 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-29 20:58:26 -0700 |
commit | 24c6197c1019e8a3e7e5924522071be5a68a7be9 (patch) | |
tree | c59de59d3448063acf253371b8453a4b88be5e3b /divelist.c | |
parent | 12ca6112e5a6f8e5ec8e1fee09976ef973f99680 (diff) | |
download | subsurface-24c6197c1019e8a3e7e5924522071be5a68a7be9.tar.gz |
Fix a number of obvious memory leaks
Just the result of cppcheck and valgrind...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c index 7f9095951..05e46bc93 100644 --- a/divelist.c +++ b/divelist.c @@ -1423,6 +1423,9 @@ static int copy_tree_node(GtkTreeIter *a, GtkTreeIter *b) DIVE_OTU, store_dive.otu, DIVE_LOCATION, store_dive.location, -1); + free(cylinder_text); + free(store_dive.location); + free(store_dive.suit); return idx; } |