]> git.tdb.fi Git - ext/subsurface.git/blobdiff - divelist.c
Fixed a small memory leak in divelist.c
[ext/subsurface.git] / divelist.c
index 1d31da5676311c3e4eb0e126303a3d4a1e137c08..e994b32527d1dd2289259b5f489052fd8303971e 100644 (file)
@@ -556,6 +556,9 @@ static void fill_one_dive(struct dive *dive,
                DIVE_OTU, dive->otu,
                DIVE_TOTALWEIGHT, total_weight(dive),
                -1);
+
+       free(location);
+       free(cylinder);
 }
 
 static gboolean set_one_dive(GtkTreeModel *model,