mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
15704da703
commit
d7f4ea66c2
1 changed files with 1 additions and 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue