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>
This commit is contained in:
Claudiu Olteanu 2015-03-23 20:17:27 +02:00 committed by Dirk Hohndel
parent 15704da703
commit d7f4ea66c2

View file

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