Fix a number of obvious memory leaks
Just the result of cppcheck and valgrind... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user