diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/plannernotes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c index eb6dc018f..1b28252d3 100644 --- a/core/plannernotes.c +++ b/core/plannernotes.c @@ -574,5 +574,6 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d put_string(&buf, "</div>"); finished: mb_cstring(&buf); + free(dive->notes); dive->notes = detach_buffer(&buf); } |