diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-08-18 13:31:28 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-23 05:07:58 -0700 |
commit | 7ae1b8cb11e0a4ede3dab6cd30c99009142b5215 (patch) | |
tree | d41d4cce7b713cba60083f6e589d6c9fd6838d6d /core | |
parent | c354abfe7c2bb614dc0db52292bb09612ec7ad99 (diff) | |
download | subsurface-7ae1b8cb11e0a4ede3dab6cd30c99009142b5215.tar.gz |
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |