summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/profile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/profile.c b/core/profile.c
index 26488cc30..6914b8301 100644
--- a/core/profile.c
+++ b/core/profile.c
@@ -499,6 +499,7 @@ void free_plot_info_data(struct plot_info *pi)
free(pi->entry);
free(pi->pressures);
pi->entry = NULL;
+ pi->pressures = NULL;
}
static void populate_plot_entries(struct dive *dive, struct divecomputer *dc, struct plot_info *pi)