aboutsummaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r--core/libdivecomputer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index fde142e0d..70b747114 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -804,6 +804,7 @@ static int dive_cb(const unsigned char *data, unsigned int size,
if (!devdata->force_download && find_dive(&dive->dc)) {
const char *date_string = get_dive_date_c_string(dive->when);
dev_info(devdata, translate("gettextFromC", "Already downloaded dive at %s"), date_string);
+ free((void *)date_string);
goto error_exit;
}