mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix memory leak in verific file parsing.
Signed-off-by: Mike Inouye <mikeinouye@google.com>
This commit is contained in:
		
							parent
							
								
									54d5e56745
								
							
						
					
					
						commit
						b0ab1cf8c3
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -3510,6 +3510,12 @@ struct VerificPass : public Pass { | ||||||
| 					verific_error_msg.clear(); | 					verific_error_msg.clear(); | ||||||
| 					log_cmd_error("Reading Verilog/SystemVerilog sources failed.\n"); | 					log_cmd_error("Reading Verilog/SystemVerilog sources failed.\n"); | ||||||
| 			} | 			} | ||||||
|  | 			char* fn; | ||||||
|  | 			int i = 0; | ||||||
|  | 
 | ||||||
|  | 			FOREACH_ARRAY_ITEM(&file_names, i, fn) { | ||||||
|  | 				free(fn); | ||||||
|  | 			} | ||||||
| 			set_modules_to_blackbox(map, work, flag_lib); | 			set_modules_to_blackbox(map, work, flag_lib); | ||||||
| 			verific_import_pending = true; | 			verific_import_pending = true; | ||||||
| 			goto check_error; | 			goto check_error; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue