mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +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; | 		break; | ||||||
| 	default: | 	default: | ||||||
| 		printf ("Unknown log format v%c\n", buf[0x137]); | 		printf ("Unknown log format v%c\n", buf[0x137]); | ||||||
|  | 		free(buf); | ||||||
| 		exit(1); | 		exit(1); | ||||||
| 		break; | 		break; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue