aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-03-23 20:17:27 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-24 09:46:26 -0700
commitd7f4ea66c299008554b70a526d742979667de302 (patch)
tree1019fd3dabf4fe9b82212250d38bf75fe45ebc24
parent15704da703e56af211e4a8dd771f48d4635900fb (diff)
downloadsubsurface-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cochran.c b/cochran.c
index 855ca7c93..fe65ee2ce 100644
--- a/cochran.c
+++ b/cochran.c
@@ -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;
}