Cleanup: fix memory leak in OSTC import

The OSTC branch forgot to release the memory of the file.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-08-18 13:31:28 +02:00 committed by Dirk Hohndel
parent c354abfe7c
commit 7ae1b8cb11

View file

@ -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;
}