diff options
Diffstat (limited to 'core/file.c')
-rw-r--r-- | core/file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/file.c b/core/file.c index cde47cfef..7b24da8e7 100644 --- a/core/file.c +++ b/core/file.c @@ -534,8 +534,9 @@ int parse_file(const char *filename) /* DataTrak/Wlog */ if (fmt && !strcasecmp(fmt + 1, "LOG")) { - datatrak_import(filename, &dive_table); - return 0; + ret = datatrak_import(&mem, &dive_table); + free(mem.buffer); + return ret; } /* OSTCtools */ |