From 7ae1b8cb11e0a4ede3dab6cd30c99009142b5215 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 18 Aug 2018 13:31:28 +0200 Subject: Cleanup: fix memory leak in OSTC import The OSTC branch forgot to release the memory of the file. Signed-off-by: Berthold Stoeger --- core/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/file.c b/core/file.c index 5c12c0a5d..beb799c09 100644 --- a/core/file.c +++ b/core/file.c @@ -351,6 +351,7 @@ int parse_file(const char *filename) /* OSTCtools */ if (fmt && (!strcasecmp(fmt + 1, "DIVE"))) { + free(mem.buffer); ostctools_import(filename, &dive_table); return 0; } -- cgit v1.2.3-70-g09d2