diff options
author | Claudiu Olteanu <olteanu.claudiu@ymail.com> | 2015-03-23 20:17:27 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-24 09:46:26 -0700 |
commit | d7f4ea66c299008554b70a526d742979667de302 (patch) | |
tree | 1019fd3dabf4fe9b82212250d38bf75fe45ebc24 | |
parent | 15704da703e56af211e4a8dd771f48d4635900fb (diff) | |
download | subsurface-d7f4ea66c299008554b70a526d742979667de302.tar.gz |
Fix memory leaks on Cochran file
Free the buffer before terminating the process.
Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | cochran.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -233,6 +233,7 @@ static void cochran_parse_header(const unsigned char *decode, unsigned mod, break; default: printf ("Unknown log format v%c\n", buf[0x137]); + free(buf); exit(1); break; } |