From d7f4ea66c299008554b70a526d742979667de302 Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu Date: Mon, 23 Mar 2015 20:17:27 +0200 Subject: Fix memory leaks on Cochran file Free the buffer before terminating the process. Signed-off-by: Claudiu Olteanu Signed-off-by: Dirk Hohndel --- cochran.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3-70-g09d2